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

[HELP]: toStreamFloat32 not working #1148

Open
wernerpaulin opened this issue Jan 11, 2025 · 4 comments
Open

[HELP]: toStreamFloat32 not working #1148

wernerpaulin opened this issue Jan 11, 2025 · 4 comments

Comments

@wernerpaulin
Copy link

Flutter Sound Version : 9.18.0

Severity

  • Result is not what expected

Platforms you faced the error

  • iOS
  • Android

Describe the bug
When using ToStream I get into the upper and lower limits of the microphone: +/- 32767.
I read in your change log I should use toStreamFloat32 as toStream is depreciated and somewhere I read it is better for the gain of the signal.
However I can't get toStreamFloat32 working. Most of the the coders won't on iOS and when I use aacADTS I never get a onData callback.
I don't need the accuracy. I need to avoid that the signal goes into the limitations.

My questions would be:

  1. Would Float32 help and how do I get it working on iOS?
  2. Is there a possibility for gain: VS Code kind of suggests but it is not compiling.

Thank you!

Logs!!!!

No specific errors. It is just not working using Float32.

@wernerpaulin wernerpaulin changed the title [HELP]: [HELP]: toStreamFloat32 not working Jan 11, 2025
@Larpoux
Copy link
Collaborator

Larpoux commented Jan 12, 2025

Hi @wernerpaulin ,
Float32 has not been implemented in Flutter Sound.
I am currently working on Player to Stream and Recorder from Stream for Flutter Web.
Hopefully it will support PCM Float32.
Then I will try to support PCM Float32 on iOS, but I don’t promise anything.
And then I will look to Android.

Actually I can’t answer for gain, because I don’t remember what I did. I must look to the code and I will tell you.

I will post something later.

@hungtranauthentia
Copy link

I also need this function to work with it

@Larpoux
Copy link
Collaborator

Larpoux commented Jan 18, 2025

I will release a new Flutter Sound later next week with Float32 and Float32Wav implemented on iOS.
This task is actually worked on.
Be patient ...

@Larpoux
Copy link
Collaborator

Larpoux commented Jan 18, 2025

iOS Float32 will be supported next week. Android and Web will be supported later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants