opened
mailong25
username_0
I'm looking for making the prediction on a single wav file without the need of loading pre-trained AM and LM models every single time. These models should only be loaded once at the beginning. 

I'm not referring to online decoding (real-time decoding).  I've read Python bindings examples and simple_streaming_asr_example and seen that it is not possible.  Should I create my own code to do this?
Offline inference pipeline
issue
created
dr-m-nasr
username_1
Thank you for asking this, i am very interested as well.
comment
created
mailong25
username_0
@vineelpratap @username_2 any suggestions ?
comment
created
avidov
username_2
Trying to understand the ask here.
If I understand you correctly, you are asking for a:
1. process that loads and stays up continuously
2. and you want at any time later feed the input files into this continuously running process. 

Is this correct ?

If so:
How do you want to feed the input when the process is running?

The examples can be modified to do something like that. I can give you some suggestions if you explain in more details what you need.
comment
created
avidov
username_2
At some point we'll probably release a small library for plugging wav2letter into a service (e.g. web-services or web-site). 
Will this cover your need?
comment
created
mailong25
username_0
Yes, you're right. I'm building a python-based ASR applications and I try to intergrate ASR to our system. So I need either:

1. A web service as you mentioned above. That way I can feed an audio (as binary format) to the process and get the transcription result. The python code will look like this:
import Wav2LetterClient
model = Wav2LetterClient(port = 'xxx', ip = 'xxx')
audio = open('sample.wav','rb')
model.transcribe(audio)

2. A python bindings that allow me to load an Acoustic modeling (eg, convglu, tds), make prediction on single wav file, and return emissions and transitions scores.
comment
created
dr-m-nasr
username_1
Hello,
I am working on an ASR app as well, i am more concerned with feeding audio live from microphone to achieve live transcription.
comment
created
avidov
username_2
.... transcription

I think this covers what you need. Please correct me otherwise.
comment
created
mailong25
username_0
Thank you for your instruction, but where the feature_extractor.bin comes from ?

https://github.com/facebookresearch/wav2letter/blob/master/inference/inference/examples/MultithreadedStreamingASRExample.cpp#L76
comment
created
avidov
username_2
Is this comment belong to this thread?
comment
created
mailong25
username_0
No, it doesn't . I'm gonna double check that. Any concerns will be open in another thread.
comment
closed
avidov
username_2
issue
created
JesseBerdowski
username_3
awesome stuff
comment