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.8or higher (download here) and add toPATH - 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/configin your home directory in encrypted form for future use. You can delete this cache with commandvoxit 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6682fdc58a328695d87e6dcfdf75a40a0adc13e2e724c0e0462f697be7b9c1aa
|
|
| MD5 |
252b3e463fa58ebebad1f6507c8c3ee8
|
|
| BLAKE2b-256 |
b7cd1f4fde3b2d045d4986a6d64e48a404ecb82a909e1f4ad5026a442463b364
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65b6ffd94d0ba517b1ce22d4b25386595390fe305bc78802fd395b3e949564e
|
|
| MD5 |
7cd10804aa41a54add4a9310177d719d
|
|
| BLAKE2b-256 |
5e9ac48b87a64510d1c1d5bfccb66e1c9fd65b43441253ee6b80fe66a092d16a
|