generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
Broken backwards compatibility when calling SpeakV1Text(text="hello") (used in client.speak.v1.connect websocket API)
What happened?
Actual:
SpeakV1Text(text="hello") fails with pydantic ValidationError:
Error: 1 validation error for SpeakV1Text
type
Field required [type=missing, input_value={'text': 'Hello, this is ...ext to speech example.'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Expected:
No crash, as it was in v6.0.1
Steps to reproduce
-
Install deepgram-sdk==6.1.0
-
Observe the error
Error: 1 validation error for SpeakV1Text
type
Field required [type=missing, input_value={'text': 'Hello, this is ...ext to speech example.'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Minimal code sample
See examples/21-text-to-speech-streaming.py
Logs / traceback
Error: 1 validation error for SpeakV1Text
type
Field required [type=missing, input_value={'text': 'Hello, this is ...ext to speech example.'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Transport
WebSocket
API endpoint / path
/v1/speak/...
Model(s) used
No response
How often?
Always
Is this a regression?
- Yes, it worked in an earlier version
Last working SDK version (if known)
6.0.1
SDK version
6.1.0
Python version
3.13
Install method
None
OS
macOS (Apple Silicon)
Environment details
Link to minimal repro (optional)
No response
Session ID (optional)
No response
Project ID (optional)
No response
Request ID (optional)
No response
Code of Conduct
- I agree to follow this project’s Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working