amazon-nova-samples
amazon-nova-samples copied to clipboard
(S2S sample-codes/websocket-nodejs) different sample-rate is currently not supported
When trying to "Start streaming" in sample-codes/websocket-nodejs, I get the following banner error in the browser:
Error: AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported.
In the terminal, messages do suggest a stream is set up... But there's no audio interaction and after a little while I also see terminal log errors like the below:
Initial events setup complete for session {...}
Stream established for session {...}, processing responses...
...
Error processing response stream for session {...}: ValidationException: Timed out waiting for input events
I was just trying to run the quick-start as per the README, and couldn't see any documented troubleshooting for this kind of issue? Observed with Firefox 137.0 on MacOS 15.3 (M2 Pro chip)
Here https://github.com/aws-samples/amazon-nova-samples/blob/6f5ab3f04ea3b77ad7c5a228cc5a1dafe662be86/speech-to-speech/sample-codes/websocket-nodejs/public/src/main.js#L62 it should be 24000.