VoiceXTractor
~ A python CLI tool to extract voice sentences from audio files with speech recognition ~
Ko-fi · Installation · Changelog
Developed by @veeso
Current version: 0.1.2 (23/09/2022)
About VXT 🚜
VXT, which stands for VoiceXTractor is a Python command-line utility to extract voice tracks from audio.
How it works:
- You provide VXT with an audio file
- The audio file is split by silence
- for each "track" chunked by the audio file, it gets the speech for it using a customisable speech-to-text engine
- you can at this point work on tracks (amplify, normalize, split, remove...)
- export the tracks to files with the format you prefer
Get started 🚀
You can install VXT with pip:
pip3 install vxt
then you must install dependencies:
pip3 install SpeechRecognition PyInquirer pydub termcolor click
you also need to install ffmpeg or libav.
Finally you can run VXT with the following arguments:
python3 -m vxt -l it_IT -o ./output/ ./assets/hackerino.mp3
this will split the hackerino.mp3 audio file into tracks by voice into output/, the -l option specifies the audio language is Italian.
vxt supports these options:
-e, --engine TEXT Specify speech2text engine [bing, google,
google-cloud, houndify, ibm, sphinx] (default:
google)
-l, --language TEXT Specify audio language (e.g. it_IT), system
language will be used otherwise
-f, --output-fmt TEXT Specify output format (See readme)
-o, --output-dir TEXT Specify output directory
-A, --api-key TEXT Specify api key (required for: bing, google
-J, --json-credentials TEXT Specify json credentials (required for: google-
cloud)
-C, --client-id TEXT Specify client id (required for: houndify)
-K, --client-key TEXT Specify client key (required for: houndify)
-U, --username TEXT Specify username (required for: ibm)
-P, --password TEXT Specify user password (required for: ibm)
--keyword-entries TEXT Specify keyword entries (required for: sphinx)
--grammar-file TEXT Specify grammar file (required for: sphinx)
--help Show this message and exit.
by default the google engine will be used for speech-to-text.
Output format
Track filename fmt.
The syntax use parameters which must be preceeded by %, everything in between will be kept the same.
The following parameters are supported.
%%: print percentage symbol%d: current day%H: current hours%I: current timestamp ISO8601 syntax%M: current minutes%m: current month%S: current seconds%s: track speech%s.NUMBERtrack speech cut at length (e.g.%s.24)%t: track number in track list (from 1 to n)%y: current year with 2 digits%Y: current year with 4 digits
Support the developer ☕
If you like VXT and you're grateful for the work I've done, please consider a little donation 🥳
You can make a donation with one of these platforms:
Contributing and issues 🤝🏻
Contributions, bug reports, new features and questions are welcome! 😉 If you have any question or concern, or you want to suggest a new feature, or you want just want to improve VXT, feel free to open an issue or a PR.
Please follow our contributing guidelines
Changelog ⏳
View VXT's changelog HERE
Powered by 💪
VXT is powered by these awesome projects:
License 📃
VXT is licensed under the MIT license.
You can read the entire license HERE
Metadata
Release files for vxt 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vxt-0.1.2.tar.gz | 27.5 kB | Without provenance | Details for vxt-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vxt-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for vxt-0.1.2-py3-none-any.whl |
Total release size: 95.7 kB
Release files / vxt-0.1.2.tar.gz
| Download URL | vxt-0.1.2.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36fa36ae3526efd193cd1ef7ef7ed3a727f347f90f3bb9e177500e17d1b65c76
|
|
BLAKE2b-256 checksum How to use checksums |
7c2ea362b77524853b18ff978fae23320da7fe54a78788aaaf16ac05be943837
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / vxt-0.1.2-py3-none-any.whl
| Download URL | vxt-0.1.2-py3-none-any.whl |
|---|---|
| Size | 68.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
009c710c7a188aa5da579edbc0fff08ebf34a7f9e1c85dc2e1af610c40a452ae
|
|
BLAKE2b-256 checksum How to use checksums |
02b02a4832c65d58f5eae683785390595f31ecfc5b1c60c0aab83276450a060b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for vxt 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.