Skip to main content

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.

I have no intention of building a very complex toolkit for speech recognition here. In fact, this library uses a lot of things already built by the Hugging Face (Thank you guys!). I just wanna have an easy-to-use interface to add speech recognition features to my apps. I hope this library could be useful for someone else too :)

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 for a given language (on the first run it may take a while)
asr = ASREngine("en")

# 2 - Use the loaded 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

ASRecognition-0.0.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

ASRecognition-0.0.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file ASRecognition-0.0.4.tar.gz.

File metadata

  • Download URL: ASRecognition-0.0.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.7.11 Linux/5.8.0-1039-azure

File hashes

Hashes for ASRecognition-0.0.4.tar.gz
Algorithm Hash digest
SHA256 edf839d374499e5f5114b078e44caedbf78250e7cb008aa9a21f97cf6b7cc96c
MD5 4246d99836203fd68bf74cb2b475a2bd
BLAKE2b-256 bb3268d73befd0d1a9cf78a0cd74966230e22fb46bb6607d7130d44a38974774

See more details on using hashes here.

File details

Details for the file ASRecognition-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ASRecognition-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.7.11 Linux/5.8.0-1039-azure

File hashes

Hashes for ASRecognition-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a49283186acca3dfd75d878a342eaad102280d5cda97666225e07a330f82c11c
MD5 f6a0899f08df2b82d375d27b0e5f9646
BLAKE2b-256 e2e05f5971fe69d6f9f878a9f085a57b8e27f995d6065b23990fcc54a0c081ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page