Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alnitak/cartesia_tts
Minimal example of using cartesia tts to produce text-to-speech audio and play it using the flutter_soloud Flutter plugin.
https://github.com/alnitak/cartesia_tts
ai cartesia flutter tts
Last synced: 23 days ago
JSON representation
Minimal example of using cartesia tts to produce text-to-speech audio and play it using the flutter_soloud Flutter plugin.
- Host: GitHub
- URL: https://github.com/alnitak/cartesia_tts
- Owner: alnitak
- Created: 2024-10-27T11:18:00.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-13T17:05:03.000Z (27 days ago)
- Last Synced: 2024-12-13T18:18:45.015Z (27 days ago)
- Topics: ai, cartesia, flutter, tts
- Language: C++
- Homepage:
- Size: 271 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Cartesia TTS using Flutter
Minimal example of using [cartesia tts](https://www.cartesia.ai/) to produce text-to-speech audio and play it using the [flutter_soloud](https://github.com/alnitak/flutter_soloud) Flutter plugin.
The workflow:
- Authenticate with the Cartesia API
- Setup a text-to-speech message to request PCM audio to Cartesia and a corresponding `flutter_soloud` stream with the same format
- Request text-to-speech audio
- Play the audio at first chunk receivedNote: replace the `cartesiaApiKey` with your Cartesia API key in `main.dart`.
Note2: no stream buffering management. If the data comes slower than the rate of the `flutter_soloud` stream, the audio could have gaps.