Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpeechBackground does not work #44

Open
shep-k-a opened this issue Jan 31, 2024 · 5 comments
Open

SpeechBackground does not work #44

shep-k-a opened this issue Jan 31, 2024 · 5 comments

Comments

@shep-k-a
Copy link

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

@nshmyrev
Copy link
Contributor

Please add more verbose logging, you should see extra information

@shep-k-a
Copy link
Author

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

https://codeshare.io/nAnM6X

@shep-k-a
Copy link
Author

shep-k-a commented Feb 1, 2024

Hi, isn't that enough?

@nshmyrev
Copy link
Contributor

nshmyrev commented Feb 4, 2024

Try to change localhost in res_speech_vosk.conf to 127.0.0.1

@shep-k-a
Copy link
Author

shep-k-a commented Feb 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants