Official 60db SDK for Python
Project description
60db
Official 60db SDK for Python
Installation
pip install sixtydb-python
Quick Start
from sixtydb import SixtyDBClient
client = SixtyDBClient('your-api-key')
# Text to Speech
audio = client.text_to_speech(
'Hello, world!',
voice_id='default-voice',
speed=1.0 # 0.5 to 2.0 (default 1.0)
)
# Save audio
with open('output.mp3', 'wb') as f:
f.write(audio)
# Get all voices
voices = client.get_voices()
API Methods
Text-to-Speech
text_to_speech(text, voice_id=None, **params)- Convert text to speech
Speech-to-Text
speech_to_text(audio_file, language=None)- Transcribe audioget_languages()- Get supported languages
Voices
get_voices()- List all voicesget_voice(voice_id)- Get specific voice
Examples
Streaming TTS
def handle_chunk(chunk):
print(f"Received {len(chunk)} bytes")
client.text_to_speech_stream(
"This is streaming audio",
on_chunk=handle_chunk,
on_complete=lambda: print("Done!"),
voice_id='default-voice'
)
Speech to Text
with open('audio.mp3', 'rb') as f:
result = client.speech_to_text(f, language='en')
print(result['text'])
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sixtydb_python-1.0.6.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sixtydb_python-1.0.6.tar.gz.
File metadata
- Download URL: sixtydb_python-1.0.6.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28c56134bc97e11769947c018b57500e85e71e47ca08ca0db610873fb060b0dd
|
|
| MD5 |
5e6f2404aa9dace38dcae746087a3455
|
|
| BLAKE2b-256 |
75f14811d6ce9eae8b82e1785a49ca6029e735c1a964437d1f279d604c9f74f6
|
File details
Details for the file sixtydb_python-1.0.6-py3-none-any.whl.
File metadata
- Download URL: sixtydb_python-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f756df9bbf7cdff06bf378574132b9e983e93ee832d25a47978bd36a65eba105
|
|
| MD5 |
884ad4292d4fb2f3545485de18faada9
|
|
| BLAKE2b-256 |
a9529c8e59abad4f160174be4f49c12bb18dbab260cb257328935cbea3f65270
|