From a0053253bf28aa68ca1e9d1c70274b4ef61e4606 Mon Sep 17 00:00:00 2001 From: Jonatas Grosman Date: Thu, 29 Jul 2021 17:47:10 +0000 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c590986..d90f6d4 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,20 @@ The script used for training can be found here: https://github.com/jonatasgrosma ## Usage -The model can be used directly (without a language model) as follows: +The model can be used directly (without a language model) as follows... + +Using the [asrecognition](https://github.com/jonatasgrosman/asrecognition) library: + +```python +from asrecognition import ASREngine + +asr = ASREngine("en") + +audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"] +transcriptions = asr.transcribe(audio_paths) +``` + +Writing your own inference script: ```python import torch