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.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for typecastai-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42959bc5afe5b904d17de95d1631d80b7c7cde1ebd0a705c5785abb3571ac31 |
|
MD5 | 3333c170b457767b463b6314c3510453 |
|
BLAKE2b-256 | e563d8d6d2a65741ce8031bec622153ebd2668b48d68b0d17bcbec739c8b39e6 |