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
Metadata
Release files for sixtydb-python 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sixtydb_python-1.0.6.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sixtydb_python-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / sixtydb_python-1.0.6.tar.gz
| Download URL | sixtydb_python-1.0.6.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28c56134bc97e11769947c018b57500e85e71e47ca08ca0db610873fb060b0dd
|
|
BLAKE2b-256 checksum How to use checksums |
75f14811d6ce9eae8b82e1785a49ca6029e735c1a964437d1f279d604c9f74f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / sixtydb_python-1.0.6-py3-none-any.whl
| Download URL | sixtydb_python-1.0.6-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f756df9bbf7cdff06bf378574132b9e983e93ee832d25a47978bd36a65eba105
|
|
BLAKE2b-256 checksum How to use checksums |
a9529c8e59abad4f160174be4f49c12bb18dbab260cb257328935cbea3f65270
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for sixtydb-python 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.