Author Topic: How to play the sound files?  (Read 3699 times)

Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
How to play the sound files?
« on: January 10, 2013, 04:28:04 pm »
Hi Richard

I have read everything on your site but i can not get it to play sound files in your latest android app.
I try the <<>> coding, but it is not working
what should be entered between <<>> ? the name of the file?
I have uploaded a file called hond.mp3 (barking dog), but i can not get it to work

hope you can help me

Mark
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: How to play the sound files?
« Reply #1 on: January 10, 2013, 05:26:09 pm »
Open the Vera Alerts Android App.
Click Menu then Sounds.
Add a sound file and give it a name like Test
Then send a message like:
    This is a <<Test>> file

Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: How to play the sound files?
« Reply #2 on: January 10, 2013, 05:49:06 pm »
Hi Richard

Thanks for your reply
I thought that would be the way but i can not change the name in the android app

when i click on Sound Name then my keyboard appears but it will not store any entry (no text appears when i type)

is there anything i do wrong, or can it be a bug?
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: How to play the sound files?
« Reply #3 on: January 10, 2013, 06:04:58 pm »
Keep clicking on the name until you get it's attention.

I noticed that the keyboard steels the focus when it pop's up (When I first touch the SoundFileName I get an orange border around the text box) ... Then I touch it again and the keyboard opens but it takes the focus away (i.e. the orange border is gone). I click it again and I get the orange border. Type a character then the keyboard word correction area pop's up ... and steels the focus again.  I click one more time and everything  seems to behave properly.

So I leave the keyboard there while I add files. I will see if there is something I should be doing to keep this from happening.


Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: How to play the sound files?
« Reply #4 on: January 10, 2013, 06:11:00 pm »
I managed to get the following text in : hond

but i still dont get the sound. it is an mp3 file, that works on the tablet,

i use the following code:

luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert",{Message =  " this is a <<hond>>" , Recipients = ""}, 30)

that should be ok? but i cant get it to work.

all other alerts work, also the tone:tts works fine. except the sound. is it ok to use mp3?

it is shown as: this is a <<hond>>  in the alert panel
« Last Edit: January 10, 2013, 06:12:58 pm by otterlo »
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: How to play the sound files?
« Reply #5 on: January 10, 2013, 06:12:17 pm »
The names are case sensitive.

Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: How to play the sound files?
« Reply #6 on: January 10, 2013, 06:14:07 pm »
 >:( sorry

i corrected that but still no succes.
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: How to play the sound files?
« Reply #7 on: January 10, 2013, 06:16:34 pm »
ahhh

it works when i use {tone:tts} in the message

should that be the case?
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: How to play the sound files?
« Reply #8 on: January 10, 2013, 06:22:16 pm »
Quote
it works when i use {tone:tts} in the message
Yes ... Earcons are part of the Text To Speech Engine!

A couple of other things for others out there:
Make sure there is no leading/trailing space in the name ... Otherwise you have to match it :(

The Notification {tone:N} and TTS use the Android Notification Steam for volume control.
The Earcon uses the Android Music Stream for volume control. Go to your Android - Settings - Sound and make sure you do not have the music volume turned down!

I tried to get the Earcon's to use the Notification stream ... the documentation indicates it should work ... but I get errors ... so I let it default to the Music stream.



Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: How to play the sound files?
« Reply #9 on: January 10, 2013, 06:26:48 pm »
ok, i didn't know that.

Thanks again, it is working for me now. the dogs are barking in the kitchen  ;D
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline dmckenna

  • Full Member
  • ***
  • Posts: 196
  • Karma: +8/-2
Re: How to play the sound files?
« Reply #10 on: May 11, 2016, 07:52:13 am »
Hi,

Am using the latest v6.05 from Play Store of the Vera Alert, the latest v6.43 of the Vera Alert, running UI7, running latest Google TTS under 6.0.1 of Android.

Can't get the EarCon thing to work. TTS works fine, the alerts come through okay - when I insert a number between the <<>> the speech pauses correctly. BUT when I put the name of the sound (dog) that has been configured in the app. nothing happens

Here's the syntax I'm using from the SendAlert option in Vera....

{tone:tts} <<dog>> Vera is running


dog is the name of the sound which has a valid path to the locally stored MP3. I also cannot delete any sounds from the same screen, but not fussed about that atm.

Anyone else having this problem ?? or can help ?

Thanks in advance,

David

Offline edgebinary

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +0/-0
Re: How to play the sound files?
« Reply #11 on: August 05, 2018, 01:49:36 pm »
Can you please prove a example of the syntax needed to call a sound file called "test" to work?