Skip to content

No response from Bedrock testing nova_sonic_simple.py or nova_sonic_with_text.py (region us-east-1) #221

@jgreboul

Description

@jgreboul

Trying to get a response back from Bedrock/Nova2 but even though the connection are established successfully. i'm not receiving anything back from Bedrock/Nova2.

python nova_sonic_simple.py
Initializing Nova Sonic client...
Starting Nova Sonic session...
Starting session...
Initializing Bedrock Runtime Client...
Creating Bedrock Runtime Client...
Bedrock Runtime Client created.
Invoking model with bidirectional stream...
Model invoked, stream established.
Sending session start event...
Sending prompt start event...
Sending text content start event...
Sending system prompt...
Sending text content end event...
Starting response processing...
Starting audio playback...
Starting audio capture...
Press Enter to stop the session...
Awaiting output from Bedrock...
Playing audio...
Capturing audio...
Starting audio capture. Speak into your microphone...
Press Enter to stop...
Sending audio content start event...

Audio playing stopped.
Audio capture stopped.
Sending audio content end event...
Ending Nova Sonic session...
Sending prompt end event...
Session ended
Exception ignored in: <class 'concurrent.futures._base.InvalidStateError'>

OR

python nova_sonic_with_text.py --mode text

=== Nova Sonic Text Chat ===
Commands:

  • Type your message and press Enter to send
  • Press Enter during assistant response to interrupt
  • Type 'audio' to switch to audio mode
  • Type 'quit' or 'exit' to end the conversation
  • Type 'help' to see this menu again

Start chatting!

Starting silent audio streaming for text mode...
Waiting for Bedrock to respond...
You: Hello. What is an LLM?
📝 Text sent: Hello. What is an LLM?

You: What is an LLM?
📝 Text sent: What is an LLM?

You: what is a car?
📝 Text sent: what is a car?

Any recommendations? suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions