Skip to main content

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.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

typecastai-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file typecastai-0.1.0.tar.gz.

File metadata

  • Download URL: typecastai-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.4.16-linuxkit

File hashes

Hashes for typecastai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59446c548202ca6e7b3e1cc25b8f29f3a58b2b983c809663a06c3d371e91456a
MD5 95e09885bef1f9777154c2acc13f1022
BLAKE2b-256 a8b3ce4e930d80a37e5b90ed376f9fc33ba92d74595ae3c326d0f4ea0e33c13c

See more details on using hashes here.

File details

Details for the file typecastai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: typecastai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.4.16-linuxkit

File hashes

Hashes for typecastai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af40acc2d8e2089605b937e010dae4e13a34bf8142567b0206465ee63863e510
MD5 0ac983b67218f048940de66b0950f31a
BLAKE2b-256 5f0f1d9c10481f26305e03566ade79ff085ffb264ca059dde7c7f902c1fe7217

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page