Skip to main content

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

Metadata

Release files for voxit 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voxit 0.0.1
File Size Uploaded
voxit-0.0.1.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for voxit 0.0.1
File Interpreter ABI Platform
voxit-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / voxit-0.0.1.tar.gz

Download URL voxit-0.0.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6682fdc58a328695d87e6dcfdf75a40a0adc13e2e724c0e0462f697be7b9c1aa
BLAKE2b-256 checksum
How to use checksums
b7cd1f4fde3b2d045d4986a6d64e48a404ecb82a909e1f4ad5026a442463b364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Release files / voxit-0.0.1-py3-none-any.whl

Download URL voxit-0.0.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a65b6ffd94d0ba517b1ce22d4b25386595390fe305bc78802fd395b3e949564e
BLAKE2b-256 checksum
How to use checksums
5e9ac48b87a64510d1c1d5bfccb66e1c9fd65b43441253ee6b80fe66a092d16a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page