Official 60db SDK for Python
Project description
60db
Official 60db SDK for Python
Installation
pip install 60db
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
60db-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
60db-1.0.6-py3-none-any.whl
(4.5 kB
view details)
File details
Details for the file 60db-1.0.6.tar.gz.
File metadata
- Download URL: 60db-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 |
413fe83985f54da00f4f892d9f65140c40cf420cebaf02385b3dfc2404b52c57
|
|
| MD5 |
5c85754d6e5b1b212a64fd0b3379467c
|
|
| BLAKE2b-256 |
64dbbba21261b931f5540726e5393ce52d2269f9705a84d1baa3e08ea191befe
|
File details
Details for the file 60db-1.0.6-py3-none-any.whl.
File metadata
- Download URL: 60db-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.5 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 |
6d6a9cb26b3f242792e88bc764ceae8a817eec56456c1f79eeee0b9051ad0abf
|
|
| MD5 |
4013a55c46b42a55a3458eface61d33a
|
|
| BLAKE2b-256 |
a8611328188c27d13545d1dc103de97955a8bc14ff85ea3d4c8b05bd5d37ff52
|