-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于lyrat_mini无法使用google-sr (AUD-4305) #934
Comments
@HongYan12345 您看下服务端是否参数发生了变化导致请求无效? |
@jason-mao 我用v4.3执行一样的代码就没有任何问题,返回空的原因是没有声音录进去 |
Hi! Were you able to solve this? I have the same issue :( |
Hi @shootao , I tried with the patch, but still getting the same result :(
|
Solved! After going through the sdcard recording example, I realized the I2S configuration is different for this board. For LyraT-Mini I had to change the following in google_sr.c, function google_sr_init(google_sr_config_t *config): Replace this part: i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
i2s_cfg.type = AUDIO_STREAM_READER;
sr->i2s_reader = i2s_stream_init(&i2s_cfg); with this: i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
i2s_cfg.type = AUDIO_STREAM_READER;
i2s_cfg.i2s_port = 1;
i2s_cfg.i2s_config.channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT;
sr->i2s_reader = i2s_stream_init(&i2s_cfg); google-sr gives a proper response now:
|
我使用lyrat-mini在调用例子中的google-traslate时发现google-sr无法调用,google-tts没有问题,但是google-sr调用后返回的是空值
api调用成功了但是并没有值在里面
The text was updated successfully, but these errors were encountered: