typecast.ai api
Project description
typecastai-python
Basic example
from typecastai import Typecast
cli = Typecast(api_token='your token here!!')
audio = cli.generate_speech('A fence cuts through the corner lot.')
with open('out.wav', 'wb') as f:
f.write(audio)
Specify output format: mp3
from typecastai import Typecast
cli = Typecast(api_token='your token here!!')
audio = cli.generate_speech('A fence cuts through the corner lot.', filetype='mp3')
with open('out.mp3', 'wb') as f:
f.write(audio)
More documentations
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
typecastai-0.1.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for typecastai-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af40acc2d8e2089605b937e010dae4e13a34bf8142567b0206465ee63863e510 |
|
MD5 | 0ac983b67218f048940de66b0950f31a |
|
BLAKE2b-256 | 5f0f1d9c10481f26305e03566ade79ff085ffb264ca059dde7c7f902c1fe7217 |