Metadata-Version: 2.1
Name: typecastai
Version: 0.1.3
Summary: typecast.ai api
Home-page: https://typecast.ai/
Keywords: typecastai,ssfm,typecast,ai,tts,speech,text,generative
Author: Juncheol Cho
Author-email: zironycho@neosapience.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.31.0,<3.0.0)
Project-URL: Documentation, https://docs.typecast.ai
Project-URL: Repository, https://github.com/neosapience/typecast-python
Description-Content-Type: text/markdown

# typecastai-python
* [Typecast.ai](https://typecast.ai)
* [Get API Token](https://biz.typecast.ai)
* [Learn about Typecast SSFM(Speech Synthesis Foundation Model) v1](https://typecast.ai/learn/typecast-ssfm-text-to-speech/)

## Basic example

```python
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

```python
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
* [API Documentation](https://docs.typecast.ai)
* [More demo](https://github.com/neosapience/typecast-api-demo)


