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

Is there any option to convert listen from a stream to an audio file? #49

Open
Lix-ai opened this issue Sep 29, 2020 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@Lix-ai
Copy link

Lix-ai commented Sep 29, 2020

Hi All :),
Is there any option to convert listen from a stream to an audio file?

Probably using a subscriber and convert the listening to a audio file.

Thanks in advance!!! =]

@Lix-ai Lix-ai added the enhancement New feature or request label Sep 29, 2020
@Larpoux
Copy link
Contributor

Larpoux commented Sep 29, 2020

On Flutter Sound V6, it is possible to play RAW-PCM Linear 16 from a Dart Stream.
Is it what you are looking for ?

@Lix-ai
Copy link
Author

Lix-ai commented Sep 29, 2020

Thanks for the answer,
I have musical notes for example 'soundfonts sf2' types, which executed in a stream every X time.
And i would like to record the stream and create it as an audio file ====> Recording it.

@Larpoux
Copy link
Contributor

Larpoux commented Sep 29, 2020

If I understand correctly, you do not want to Record (from a microphone, ...) or Playback (to a loudspeaker, ...).
What you want is download something which is streamed by a server.
For this, Flutter Sound is not the correct tool.

On Wikipedia : A SoundFont bank contains base samples in PCM format (similar to WAV files)
Flutter Sound can play raw PCM data, but I am not really sure about 'soundfonts sf2' types.

Also, 'soundfonts sf2' has sometimes to deal with MIDI. If your data is MIDI, then Flutter Sound is not the correct tool.

I hope that I am clear, and that I understood correctely what you are trying to do.

@Larpoux
Copy link
Contributor

Larpoux commented Sep 29, 2020

Also, there is a helper function in Flutter Sound V6 which can convert Raw PCM-Linear 16 to a Wave (.wav) file.
This may help you.

@Lix-ai
Copy link
Author

Lix-ai commented Sep 29, 2020

Thanks :),
You are correct 'soundfonts sf2' has sometimes to deal with MIDI.

Probably need to convert those midi sound to PCM data / WAV data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants