Skip to content

feat: add article character-limits-deepgram-tts #228

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Understanding Character Limits in Deepgram's Text-to-Speech (TTS) Service

Deepgram provides a powerful Text-to-Speech (TTS) service that comes with certain character limits to ensure optimal performance and avoid issues such as distorted audio output. Understanding these limits and how they may change in future updates is crucial for developers to make informed decisions when implementing TTS solutions.

### Current Character Limit

As of now, the character limit for Deepgram's TTS service using the `aura-2` model is 1000 characters per request. This limit is set to prevent audio anomalies such as the speech sounding "drunk" or "crazy" when the input text is too long.

### Upcoming Changes

Deepgram plans to increase this character limit in the near future as part of moving to a production implementation. While the exact limit is yet to be finalized, it's projected to be significantly higher than 1000 characters. The plan includes breaking down longer text passages internally into smaller sub-requests (each less than or equal to 1000 characters), then stitching the generated audio pieces back together. This method will maintain the quality of the speech output while allowing for larger text inputs.

### Future Considerations

Although Deepgram intends to lift the strict 1000-character limit, there will still be an upper boundary to safeguard production servers from excessively large inputs. The decision on what this new limit will be will depend on final benchmark data, ensuring a balance between user convenience and system stability.

### Conclusion

Keep an eye on updates from Deepgram regarding TTS character limits, especially if your use cases involve generating speech for longer text passages. If issues persist or the system behavior seems inconsistent, reach out to your Deepgram support representative (if you have one) or visit our community for assistance: [Deepgram Community](https://discord.gg/deepgram).

### References
- [Deepgram Text-to-Speech Documentation](https://developers.deepgram.com/docs/tts-rest)
- [Join the Deepgram Community on Discord](https://discord.gg/deepgram)