TRY THIS with all the new stt and tts applications

trupsalms

Member
Joined
May 13, 2011
Messages
337
Reaction score
6
Has there been any new updates to applications such as: 949 speak city and state, 947 dial zip code or any other app thats has stt or tts. All seems broken with google, and can't figure out how to update to use pico or ibm. Please help.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
@trupsalms Switch to IBM TTS and STT, and all of the problems magically disappear. 949 is broken beyond repair, but 947 and 951 work great.
 

trupsalms

Member
Joined
May 13, 2011
Messages
337
Reaction score
6
;# // BEGIN nv-weather-google
exten => 949,1,Answer
exten => 949,n,Wait(1)
exten => 949,n,Set(TIMEOUT(digit)=7)
exten => 949,n,Set(TIMEOUT(response)=10)
exten => 949,n(retry),agi(googletts.agi,"After the beep say the city and state or province of the weather report you wish to retrieve. Then press pound.",en)
;exten => 949,n,Wait(1)
exten => 949,n,agi(speech-recog.agi,en-US)
exten => 949,n,Wait(3)
exten => 949,n,Noop(= Script returned: ${status} , ${id} , ${confidence} , ${utterance} =)
exten => 949,n,GotoIf($["${confidence}" > "0.4"]?proceed:retry)
exten => 949,n,(proceed,)agi(googletts.agi,"Please hold a moment while we retrieve your report for ${utterance}.",en)
exten => 949,n,AGI(nv-weather-google.php,${utterance})
exten => 949,n,NoOp(Forecast: ${WEATHER})
exten => 949,n,agi(googletts.agi,"${WEATHER}",en)
exten => 949,n,Hangup
;# // END nv-weather-google
 

trupsalms

Member
Joined
May 13, 2011
Messages
337
Reaction score
6
@wardmundy all the parts are in place it does pull the data, but it does not play the audio stream, looking at the cli i see
  1. -- Launched AGI Script /var/lib/asterisk/agi-bin/ibmtts.php
  2. [2017-11-12 15:24:46] WARNING[14447][C-0000004c]: file.c:774 ast_openstream_full: File /tmp/text does not exist in any format
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
If Temp file is empty, IBM is not sending back data. Probably bad credentials.
 

trupsalms

Member
Joined
May 13, 2011
Messages
337
Reaction score
6
credentials.Are user asterisk / group asterisk, and permissions are 0775
 

mainenotarynet

Not really a Guru - Just a long time user
Joined
May 29, 2010
Messages
754
Reaction score
155
wrong credentials -- IBM TTS requires an API username and API password which you can find out how to set up an IBM watson account on Nerdvittles -- you must not have read fully or skipped something -- then once you get these needed credentials you need to input them in the file mentioned in the NV article (/var/lib/asterisk/agi-bin/ibmtts.php) - this file has a line like API_user and API-Password or something like it. insert what you got from IBM and save file then asterisk rx "reload dialplan" (I think) or is it the other of amportal restart. then try the procedure you wanted again.
 

mark847

Member
Joined
Oct 16, 2009
Messages
37
Reaction score
3
IBM TTS now uses just an API_KEY.

Is there an updated /var/lib/asterisk/agi-bin/ibmtts.php ?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,221
Just use apikey for the username and your actual APIkey for the password.
 

Members online

Forum statistics

Threads
25,812
Messages
167,765
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top