dialogflow / asr-server

FastCGI support for Kaldi ASR
Apache License 2.0
184 stars 86 forks source link

Can I decode 8k audio? #54

Closed MengjieQian closed 4 years ago

MengjieQian commented 4 years ago

Thanks for the server. I have a model trained with 8k audios and want to decode 8k audios, how can I do it? When I run the server, it has an error as shown below, but I have trouble finding where to add the --allow_{upsample,downsample} option. Can you help me please?

"ERROR (fcgi-nnet3-decoder[5.5.517~1-06bf]:MaybeCreateResampler():online-feature.cc:99) Sampling frequency mismatch, expected 8000, got 16000 Perhaps you want to use the options --allow_{upsample,downsample}",

MengjieQian commented 4 years ago

Problem solved. The data_frequency is defined in "RequestRawReader.h" and "OnlineDecoder.cc".