1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TRY THIS with all the new stt and tts applications

Discussion in 'PIAF 3 Add-On Install Instructions' started by trupsalms, Nov 10, 2017.

  1. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
    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.
     
  2. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
  3. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,819
    Likes Received:
    2,293
    @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 likes this.
  4. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
    ;# // 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
     
  5. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
    Thanks I think i have some of the parts in place.
     
  6. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
  7. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
    @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
     
  8. wardmundy

    wardmundy Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    13,819
    Likes Received:
    2,293
    If Temp file is empty, IBM is not sending back data. Probably bad credentials.
     
  9. trupsalms

    trupsalms Member

    Joined:
    May 13, 2011
    Messages:
    292
    Likes Received:
    3
    credentials.Are user asterisk / group asterisk, and permissions are 0775
     
  10. mainenotarynet

    mainenotarynet Not really a Guru - Just a long time user

    Joined:
    May 29, 2010
    Messages:
    454
    Likes Received:
    48
    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.
     

Share This Page