Skip to content
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

Error with recording on ios Simulator when using any encorder as an input option #336

Open
Infinitism opened this issue Aug 19, 2024 · 1 comment
Labels
waiting-for-response Waiting for someone to respond.

Comments

@Infinitism
Copy link

Infinitism commented Aug 19, 2024

Describe the bug
Anytime I try to enable a different encoding with the controller constructor, the waveforms don't show up on recording and doesn't record at all. When I remove the encoder options, it works.

To Reproduce
Steps to reproduce the behavior:

  1. Recording with ONLY this constructor works:

recorderController = RecorderController()

  1. Change to following where encoder is literally anything as given in the documentation, and it stops working.

_recorderController = RecorderController()
..androidEncoder = AndroidEncoder.amr_wb
..iosEncoder = IosEncoder.kAudioFormatAMR_WB
..sampleRate = 16000;

Expected behavior
Should record audio when using different encoders.

Smartphone (please complete the following information):
ios simnulator: 15 pro max

Additional context
I need to use one of the encoding formats listed on this Google Speech to Text documentation and, though the options exist for constructor, won't work when provided one.

https://cloud.google.com/speech-to-text/docs/encoding#audio-encodings

@himanshuGandhiSimform
Copy link
Collaborator

Hello @Infinitism can you please check whether the encoder is supported by the platform or not? If supported, then please share the encoder format.

@himanshuGandhiSimform himanshuGandhiSimform added the waiting-for-response Waiting for someone to respond. label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-response Waiting for someone to respond.
Projects
None yet
Development

No branches or pull requests

2 participants