()
| 43 | |
| 44 | |
| 45 | async def example1(): |
| 46 | print("Example 1: Synthesizing audio using a pre-existing voice...") |
| 47 | |
| 48 | stream = hume.tts.synthesize_json_streaming(**example1_request_params) |
| 49 | |
| 50 | await play_audio_streaming(base64.b64decode(chunk.audio) async for chunk in stream if chunk.type == "audio") |
| 51 | |
| 52 | |
| 53 | # Example 2: Voice Design. |
no outgoing calls