# 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)
Raw data
{
"_id": null,
"home_page": "https://typecast.ai/",
"name": "typecastai",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "typecastai, ssfm, typecast, ai, tts, speech, text, generative",
"author": "Juncheol Cho",
"author_email": "zironycho@neosapience.com",
"download_url": "https://files.pythonhosted.org/packages/0f/d4/e020e44cda3879dff22ec9c7a1d7a5385732c012ab74aa1d0cc12e9d129e/typecastai-0.1.3.tar.gz",
"platform": null,
"description": "# typecastai-python\n* [Typecast.ai](https://typecast.ai)\n* [Get API Token](https://biz.typecast.ai)\n* [Learn about Typecast SSFM(Speech Synthesis Foundation Model) v1](https://typecast.ai/learn/typecast-ssfm-text-to-speech/)\n\n## Basic example\n\n```python\nfrom typecastai import Typecast\n\ncli = Typecast(api_token='your token here!!')\naudio = cli.generate_speech('A fence cuts through the corner lot.')\n\nwith open('out.wav', 'wb') as f:\n f.write(audio)\n```\n\n### Specify output format: mp3\n\n```python\nfrom typecastai import Typecast\n\ncli = Typecast(api_token='your token here!!')\naudio = cli.generate_speech('A fence cuts through the corner lot.', filetype='mp3')\n\nwith open('out.mp3', 'wb') as f:\n f.write(audio)\n```\n\n## More documentations\n* [API Documentation](https://docs.typecast.ai)\n* [More demo](https://github.com/neosapience/typecast-api-demo)\n\n",
"bugtrack_url": null,
"license": null,
"summary": "typecast.ai api",
"version": "0.1.3",
"project_urls": {
"Documentation": "https://docs.typecast.ai",
"Homepage": "https://typecast.ai/",
"Repository": "https://github.com/neosapience/typecast-python"
},
"split_keywords": [
"typecastai",
" ssfm",
" typecast",
" ai",
" tts",
" speech",
" text",
" generative"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cb393f90c95bddd2f0da47961dc0655ca078ad6072da8fcbe75c68c8b8e722bc",
"md5": "be25c7f8ddd331d41f9670102da0c7da",
"sha256": "0e97273feb94fb90ff409e3d6a7293cd276f4efc2bbdf6ba763346329fb763f0"
},
"downloads": -1,
"filename": "typecastai-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be25c7f8ddd331d41f9670102da0c7da",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 3043,
"upload_time": "2024-03-22T13:25:27",
"upload_time_iso_8601": "2024-03-22T13:25:27.419029Z",
"url": "https://files.pythonhosted.org/packages/cb/39/3f90c95bddd2f0da47961dc0655ca078ad6072da8fcbe75c68c8b8e722bc/typecastai-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0fd4e020e44cda3879dff22ec9c7a1d7a5385732c012ab74aa1d0cc12e9d129e",
"md5": "c43c7acda8556aa089284b1f2ecd61b8",
"sha256": "a0f6831a5fab3b6cb3616b6af812a8a06e4856c72e104cf8a1b91d2db39a07af"
},
"downloads": -1,
"filename": "typecastai-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "c43c7acda8556aa089284b1f2ecd61b8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 2240,
"upload_time": "2024-03-22T13:25:28",
"upload_time_iso_8601": "2024-03-22T13:25:28.711463Z",
"url": "https://files.pythonhosted.org/packages/0f/d4/e020e44cda3879dff22ec9c7a1d7a5385732c012ab74aa1d0cc12e9d129e/typecastai-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-22 13:25:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "neosapience",
"github_project": "typecast-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "typecastai"
}