alxpettit / akasha Goto Github PK
View Code? Open in Web Editor NEWHeadless recording app with automatic segmentation
License: GNU Affero General Public License v3.0
Headless recording app with automatic segmentation
License: GNU Affero General Public License v3.0
Tests on Windows show a crash when running akasha rec
.
Err on a machine with dual microphone streams, on Windows.
InvalidAudioBlockChannelCount { expected: 1, actual: 2 }
Looks like upstream code expects an array of arrays of blocks, with one audio block per channel. For some reason, I expected the samples would just alternate, and I'd just need to recalculate the sample rate to get the same fidelity -- but it looks like I will need to dynamically build an array of arrays of blocks, and pass that around, which will require significant refactoring and rethinking of the asynchronous stream approach.
Edit:
Wow, good catch, me! Do you wanna just pass around a Vec<Vec<f32>>
or something? The heap allocation isn't great, but it probably won't affect performance much, and earlier benchmarking suggested Vec was actually more performant than less heap-y alternatives, at least, without some ergonomic memory recycling.
Note: building a stream of a fixed size block, from an unknown size will require some slightly nontrivial logic to do efficiently. On the plus side, though, this might slightly reduce the overhead of whatever state machine nonsense async streams are doing behind the scenes. :D
Alternatively, we could just interleave the channels, but if the stream ever got interrupted we would have to make sure there was no ambiguity about which sample goes to which channel.
Edit 2: looks like maybe CPAL itself uses the interleaved format?
Also, I forgot this, but apparently I was already using Chunk
objects, which are a wrapper around Vec<f32>
if I remember rightly.
So, I'm going to have to un-interleave them. :/
It would be useful when recording from multiple devices, for some use cases, to be able to combine all the files into one directory -- but there is a risk of file name collision. It would be ideal to have the file name terminate with a %HOSTNAME
in the format string or somesuch.
Probe commands were added after signal hooks, and the signal hooks feature no longer takes place at a sensible part of the execution flow.
Just curious...
pls implement
Does not list output devices
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.