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

When i forcibly stop listening,will return error #17

Open
li-yu-tfs opened this issue Sep 29, 2024 · 3 comments
Open

When i forcibly stop listening,will return error #17

li-yu-tfs opened this issue Sep 29, 2024 · 3 comments

Comments

@li-yu-tfs
Copy link

When i forcibly stop listening,will return error

thread 'tokio-runtime-worker' panicked at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/alloc/src/vec/mod.rs:2201:36:
range end index 4096 out of range for slice of length 2884
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at /xxxxx/azure-speech-0.3.0/src/connector/client.rs:124:79:
called Result::unwrap() on an Err value: SendError(Ok(Message { id: "xxxxx", path: "speech.startdetected", headers: [("Content-Type", "application/json; charset=utf-8")], data: Text(Some("{"Offset":5100000}")) }))

And I get an error the second time I open it

thread '' panicked at src/handlers/listening_speak.rs:70:10:
to recognize: InternalError("channel closed")

@li-yu-tfs
Copy link
Author

I will only initialize azure client once again globally

@li-yu-tfs
Copy link
Author

Actually, the question I want to express is, how do I force stop_listen?

@jBernavaPrah
Copy link
Owner

Hi @li-yu-tfs!

Could you provide a minimum example to reproduce the error?

Thanks!

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