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

How to use SpeechProcessingSound() ? #4

Open
ringneck opened this issue Feb 18, 2023 · 1 comment
Open

How to use SpeechProcessingSound() ? #4

ringneck opened this issue Feb 18, 2023 · 1 comment

Comments

@ringneck
Copy link

Hi,

I've tried using speechProcessingSound() dialplan like this.

exten => speech,1,Verbose(0, This is Dynamic sub-speech-dynamic-google SERVER:${ARG1}, RESPONSE-TYPE:${ARG2}, NUM:${ARG3} )
same => n,Set(RESPONSE-TYPE=${IF($["${ISNULL(${ARG2})}"="1"]?question:${ARG2})})
same => n,SpeechCreate(dynamic-google-${ARG1})
same => n,Set(SPEECH-ERROR=${ERROR})
same => n,ExecIf($["${ERROR}"="1"]?return())
same => n,SpeechProcessingSound(pls-hold-process-tx)) <----- here but, working not
same => n,SpeechStart()
same => n,SpeechBackground(dynamic-beep,${ARG4})
same => n,NoOp(상태확인: 1 이면 말하는 중, ${SPEECH(spoke)})
same => n,Verbose(0,Text:${SPEECH_TEXT(0)}, Score:${SPEECH_SCORE(0)})
same => n,Set(RESPONSE-${RESPONSE-TYPE}-${ARG3}=${STRREPLACE(SPEECH_TEXT(0)," ","")})
same => n,SpeechDestroy

It doesn't seem to work.

thanks

@dcowan-london
Copy link

I haven't tested myself, but have you tried moving SpeechProcessingSound() to after SpeechStart()?

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

No branches or pull requests

2 participants