You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there any option to convert listen from a stream to an audio file? #49
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.
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.
Activity
Larpoux commentedon 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 commentedon 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 commentedon 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 commentedon 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 commentedon 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.