ASRecognition: just an easy-to-use library for Automatic Speech Recognition.
Project description
ASRecognition
ASRecognition: just an easy-to-use library for Automatic Speech Recognition.
The currently supported languages are Arabic (ar), German (de), Greek (el), English (en), Spanish (es), Persian (fa), Finnish (fi), French (fr), Hungarian (hu), Italian (it), Japanese (ja), Dutch (nl), Polish (pl), Portuguese (pt), Russian (ru), Chinese (zh-CN).
Requirements
- Python 3.7+
Installation
$ pip install asrecognition
How to use it?
from asrecognition import ASREngine
# 1 - Load the ASR engine by a given language (may take a while for the first time)
asr = ASREngine("en")
# 2 - Use the ASR engine to transcribe a list of audio files
audio_paths = ["/path/to/sagan.mp3", "/path/to/asimov.wav"]
transcriptions = asr.transcribe(audio_paths)
# 3 - Voilà!
print(transcriptions)
# [
# {"path": "/path/to/sagan.mp3", "transcription": "EXTRAORDINARY CLAIMS REQUIRE EXTRAORDINARY EVIDENCE"},
# {"path": "/path/to/asimov.wav", "transcription": "VIOLENCE IS THE LAST REFUGE OF THE INCOMPETENT"}
# ]
Want to help?
See the contribution guidelines if you'd like to contribute to ASRecognition project.
You don't even need to know how to code to contribute to the project. Even the improvement of our documentation is an outstanding contribution.
If this project has been useful for you, please share it with your friends. This project could be helpful for them too.
If you like this project and want to motivate the maintainers, give us a :star:. This kind of recognition will make us very happy with the work that we've done with :heart:
Citation
If you want to cite the tool you can use this:
@misc{grosman2021asrecognition,
title={ASRecognition},
author={Grosman, Jonatas},
publisher={GitHub},
journal={GitHub repository},
howpublished={\url{https://github.com/jonatasgrosman/asrecognition}},
year={2021}
}
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
Built Distribution
Hashes for ASRecognition-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89135ab9981dc46a866bc191844b7bf02d73c6dfdf11543e28a7f57e3e94c0fe |
|
MD5 | 64274a1034c7a53148d446c05302637c |
|
BLAKE2b-256 | 0ee27b191749d642eafbac5693b5001a971f6dbe20724ae6e096c67962817fb1 |