Audio Feature Extractor
A simple and extensible tool for extracting audio features, designed for speech and audio experiments.
Features
- Extracts traditional audio features (pitch, timbre, loudness, etc.)
- Supports English and Chinese G2P (grapheme-to-phoneme) conversion
- Embedding and semantic feature extraction (e.g., speaker embeddings, ASR, etc.)
- Modular design for easy extension
Installation
-
Clone the repository:
git clone <your-repo-url> cd audio_feature_extractor
-
Install dependencies:
pip install .
Note: For GPU support, install the appropriate version of PyTorch for your CUDA version before running
pip install .. See PyTorch Get Started for details.
Usage
from audio_feature_extractor import FeatureExtractor
extractor = FeatureExtractor()
audio_path = "tmp/test.wav"
features = extractor.extract_features(audio_path)
print(features)
Project Structure
src/audio_feature_extractor/
extractor.py
features/
traditional.py
embedding.py
semantic.py
g2p/
Notes
- This tool is intended for research and experimental use.
- For large models or neural network weights, see the documentation for download instructions.
- If you encounter CUDA/cuDNN or dependency issues, please refer to the Troubleshooting section below.
Troubleshooting
- CUDA/cuDNN errors:
Make sure your environment variables (e.g.,LD_LIBRARY_PATH) are set correctly and that you have installed the correct CUDA/cuDNN versions. - PyTorch version:
Install the correct PyTorch version for your hardware and CUDA version before installing this package.
License
Changelog
v0.1.0
- Initial release: basic usage for English speech feature extraction.
Feel free to contribute or open issues!
Metadata
Release files for audio-feature-extractor 0.1.1
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 |
|---|---|---|---|---|
| audio_feature_extractor-0.1.1.tar.gz | 9.1 kB | Without provenance | Details for audio_feature_extractor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| audio_feature_extractor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for audio_feature_extractor-0.1.1-py3-none-any.whl |
Total release size: 20.7 kB
Release files / audio_feature_extractor-0.1.1.tar.gz
| Download URL | audio_feature_extractor-0.1.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e7e03b1c17604d23a2d853fda416a69c76e0388410949f43ac0e5c22c7d219d
|
|
BLAKE2b-256 checksum How to use checksums |
30edd1d76cc639932781688427359e7be56c042ac2ca9dfa995d343f4ab4d778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / audio_feature_extractor-0.1.1-py3-none-any.whl
| Download URL | audio_feature_extractor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34ea8c5d07e4c429271eed5f6d99f440e0dcce529c2e76db9a4a59dc7e0f7cd6
|
|
BLAKE2b-256 checksum How to use checksums |
f4a44ff53ca01ebd90119dd00067522d07145fa85ea29811387f7e0545282b97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for audio-feature-extractor 0.1.1
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.