Skip to main content

A simple text to speech & speech to text tool using OpenAI API

Project description

Voxit

Voxit is a simple text-to-speech and speech-to-text CLI that uses the OpenAI API to generate human-like speech or transcribe human speech to text.

If you like this project, please consider giving it a star! :star:

Features

  • Text-to-Speech
  • Speech-to-Text
  • Chunked audio and text processing for large files

Requirements

  • OpenAI API key (get one here)
  • Python 3.8 or higher (download here) and add to PATH
  • ffmpeg (download here) and add to PATH

Installation

From github:

git clone https://github.com/sean1832/voxit.git
pip install .

Usage

Voxit requires an OpenAI API key to function. You can get one here.

[!NOTE] Voxit will prompt you to enter your API key if you do not provide it as an argument. It will then cache the key in a file called .openai/config in your home directory in encrypted form for future use. You can delete this cache with command voxit clear.

Text-to-Speech

voxit tts "input.txt" -o "output.mp3"
Option Description Default Options
input_file Input file path None
-o, --output Output file path None
-k, --key OpenAI API key None
-v, --voice Voice name onyx alloy, echo, onyx, fable, nova, shimmer
-s, --speed Speaking speed (between 0.25 to 4.0) 1.0

Speech-to-Text

voxit stt "input.mp3" -o "output.txt"
Option Description Default Options
input_file Input file path None
-o, --output Output file path None
-k, --key OpenAI API key None

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

voxit-0.0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voxit-0.0.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file voxit-0.0.1.tar.gz.

File metadata

  • Download URL: voxit-0.0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for voxit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6682fdc58a328695d87e6dcfdf75a40a0adc13e2e724c0e0462f697be7b9c1aa
MD5 252b3e463fa58ebebad1f6507c8c3ee8
BLAKE2b-256 b7cd1f4fde3b2d045d4986a6d64e48a404ecb82a909e1f4ad5026a442463b364

See more details on using hashes here.

File details

Details for the file voxit-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: voxit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for voxit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a65b6ffd94d0ba517b1ce22d4b25386595390fe305bc78802fd395b3e949564e
MD5 7cd10804aa41a54add4a9310177d719d
BLAKE2b-256 5e9ac48b87a64510d1c1d5bfccb66e1c9fd65b43441253ee6b80fe66a092d16a

See more details on using hashes here.

Supported by

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