sounds icon indicating copy to clipboard operation
sounds copied to clipboard

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

Open Lix-ai opened this issue 5 years ago • 5 comments

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 avatar Sep 29 '20 08:09 Lix-ai

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

Larpoux avatar Sep 29 '20 08:09 Larpoux

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.

Lix-ai avatar Sep 29 '20 09:09 Lix-ai

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 avatar Sep 29 '20 09:09 Larpoux

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.

Larpoux avatar Sep 29 '20 09:09 Larpoux

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

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

Lix-ai avatar Sep 29 '20 09:09 Lix-ai