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.3.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for typecastai-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e97273feb94fb90ff409e3d6a7293cd276f4efc2bbdf6ba763346329fb763f0 |
|
MD5 | be25c7f8ddd331d41f9670102da0c7da |
|
BLAKE2b-256 | cb393f90c95bddd2f0da47961dc0655ca078ad6072da8fcbe75c68c8b8e722bc |