vosk-asterisk icon indicating copy to clipboard operation
vosk-asterisk copied to clipboard

SpeechBackground does not work

Open shep-k-a opened this issue 5 months ago • 5 comments

Hi I use Freepbx (Asterisk 18.20.2) At the SpeechBackground stage, it throws an error "exited non-zero". The call ends, the sound is not played. What could be the reason?

log

 Goto (stt,s,1)
    -- Executing [s@stt:1] Answer("PJSIP/1001-00000012", "") in new stack
    -- Executing [s@stt:2] Wait("PJSIP/1001-00000012", "1") in new stack
    -- Executing [s@stt:3] SpeechCreate("PJSIP/1001-00000012", "") in new stack
    -- Executing [s@stt:4] SpeechBackground("PJSIP/1001-00000012", "custom/present_1") in new stack
  == Spawn extension (stt, s, 4) exited non-zero on 'PJSIP/1001-00000012'

extension

[stt]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,SpeechCreate
exten => s,n,SpeechBackground(custom/present_1)
#exten => s,n,Verbose(0,Result as ${SPEECH_TEXT(0)})
exten => s,n,Hangup()

The sound is played quietly through the Playback. Server Vosk is up and running through python in a dialplan. Example exten => s,n,Set(RESULT=${SHELL(python3.6 /home/vosk-server/websocket/test_srt.py ..... image

shep-k-a avatar Jan 31 '24 09:01 shep-k-a

Please add more verbose logging, you should see extra information

nshmyrev avatar Jan 31 '24 10:01 nshmyrev

Пожалуйста, добавьте более подробное ведение журнала, вы должны увидеть дополнительную информацию

https://codeshare.io/nAnM6X

shep-k-a avatar Jan 31 '24 11:01 shep-k-a

Hi, isn't that enough?

shep-k-a avatar Feb 01 '24 10:02 shep-k-a

Try to change localhost in res_speech_vosk.conf to 127.0.0.1

nshmyrev avatar Feb 04 '24 19:02 nshmyrev

Unfortunately, it didn't help. Any other ideas?

shep-k-a avatar Feb 05 '24 16:02 shep-k-a