If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
How to save an audio stream?
6 posts
• Page 1 of 1
How to save an audio stream?
Hello,
There's a 'Text Save' primitive that lets you save a given text, a 'Video Save' primitive that lets you save a video, but NO 'Stream Save' or 'Audio Save'.
I know that there's R&D component 'SaveWave' available, but that one can only save from a mem-input which I can't feed from a stream, only from a float array (or I would have to do my own reading like the waveplayer does, but that's a very unconvenient way to save an audio stream).
Please help.
I did not find the right solution from the internet.
http://www.dsprobotics.com/
clickfunnels review
There's a 'Text Save' primitive that lets you save a given text, a 'Video Save' primitive that lets you save a video, but NO 'Stream Save' or 'Audio Save'.
I know that there's R&D component 'SaveWave' available, but that one can only save from a mem-input which I can't feed from a stream, only from a float array (or I would have to do my own reading like the waveplayer does, but that's a very unconvenient way to save an audio stream).
Please help.
I did not find the right solution from the internet.
http://www.dsprobotics.com/
clickfunnels review
- blaise84
- Posts: 1
- Joined: Thu Mar 21, 2019 6:03 pm
Re: How to save an audio stream?
Hi
If you look inside my Quilcom Caster you’ll find an audio recorder.
This may not be what you want because you have to specify the maximum recording time, rather than it be open-ended. You pre-set a defined memory size then fill it with audio data. You can’t change the memory size on the fly.
viewtopic.php?f=3&t=14601&p=47689&hilit=quilcom+caster#p47689
It might be possible using Ruby, since it can handle frames and write to disk etc. but that’s for a Ruby expert to chip in I’m afraid.
Cheers
Spogg
If you look inside my Quilcom Caster you’ll find an audio recorder.
This may not be what you want because you have to specify the maximum recording time, rather than it be open-ended. You pre-set a defined memory size then fill it with audio data. You can’t change the memory size on the fly.
viewtopic.php?f=3&t=14601&p=47689&hilit=quilcom+caster#p47689
It might be possible using Ruby, since it can handle frames and write to disk etc. but that’s for a Ruby expert to chip in I’m afraid.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: How to save an audio stream?
I have experimented a little with streaming to disk using Ruby. It is certainly possible, but I abandoned the project, as Ruby is very poorly suited to doing it; at audio rates at least. CPU loads were incredibly high due to the need to process every single sample of every Ruby Frame in real time (multiple frames for stereo and beyond), involving an enormous number of temporary Ruby objects. Ruby is also unable to create the OS threads which are a vital part of enabling buffering and HDD writing to be implemented as a background task so that the OS can manage the load effectively.
The only sensible way to implement it would be with a custom .dll via the DLL primitive, which would allow access to the Windows libraries for OS threads and low-level file access, and would massively speed up the processing of Frames (which are essentially C++ arrays under the hood.) I tried to make a little start on doing that, but my C++ chops weren't up to the task; it's very much harder work than a Ruby implementation!
The only sensible way to implement it would be with a custom .dll via the DLL primitive, which would allow access to the Windows libraries for OS threads and low-level file access, and would massively speed up the processing of Frames (which are essentially C++ arrays under the hood.) I tried to make a little start on doing that, but my C++ chops weren't up to the task; it's very much harder work than a Ruby implementation!
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: How to save an audio stream?
...
Last edited by MichaelBenjamin on Mon Sep 21, 2020 9:52 am, edited 1 time in total.
- MichaelBenjamin
- Posts: 275
- Joined: Tue Jul 13, 2010 1:32 pm
Re: How to save an audio stream?
...
Last edited by MichaelBenjamin on Mon Sep 21, 2020 9:53 am, edited 1 time in total.
- MichaelBenjamin
- Posts: 275
- Joined: Tue Jul 13, 2010 1:32 pm
Re: How to save an audio stream?
MichaelBenjamin wrote:also maybe these two prims could help in setting up a basic save as wav func?
Yes indeed! That’s the only way I know, and it works, BUT you need to specify the recording length at the outset for the mem size. To record a stream of unknown length is a different matter entirely.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 57 guests