Skip to content

Commit de1528a

Browse files
committed
Update README.md
1 parent 5dc0129 commit de1528a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: tts/tts-python-quickstart/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ See the [Quickstart guide](https://dev.hume.ai/docs/text-to-speech-tts/quickstar
3131
uv add hume python-dotenv aiofiles
3232
```
3333

34+
Optional: For audio playback functionality, install PyAudio:
35+
36+
First, install the required system dependencies:
37+
- macOS: `brew install portaudio`
38+
- Linux: `sudo apt-get install python3-dev libasound2-dev portaudio19-dev`
39+
40+
Then install the Python package:
41+
```shell
42+
uv sync --extra playback
43+
```
44+
3445
3. Set up your API key:
3546

3647
You must authenticate to use the Hume TTS API. Your API key can be retrieved from the [Hume AI platform](https://platform.hume.ai/settings/keys). For detailed instructions, see our documentation on [getting your api keys](https://dev.hume.ai/docs/introduction/api-key).

Diff for: tts/tts-python-quickstart/pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ dependencies = [
99
"hume>=0.7.11",
1010
"python-dotenv>=1.0.1",
1111
]
12+
13+
[project.optional-dependencies]
14+
playback = [
15+
"pyaudio>=0.2.13",
16+
]

0 commit comments

Comments
 (0)