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.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for typecastai-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116a3be0c366a78d34e5cc8583282c10ee1954d38c5e8f0bb5b6847435968ce0 |
|
MD5 | e1cde1b0ce128a1955338ad4f215b9d2 |
|
BLAKE2b-256 | e16a547ed062e245f164aa894fda4d2d895c8d5577b2609f3b0b17e5be60faf4 |