Giter Site home page Giter Site logo

Comments (6)

gtreshchev avatar gtreshchev commented on May 24, 2024

Yes, it is possible. Instead of binding to OnGeneratePCMData, which is used during sound wave playback, you should bind to OnPopulateAudioData, which is broadcasted each time audio population occurs. This way, the audio data will be analyzed during the capturing process itself.

from audioanalysistools.

BorisKourt avatar BorisKourt commented on May 24, 2024

Thanks for the quick reply! I am having trouble adapting this part of the wiki based on your recommendation: https://github.com/gtreshchev/AudioAnalysisTools/wiki#example-of-detecting-a-beat-as-a-sound-wave-is-played

It appears that I still need an imported sound wave in order to make everything connect properly?

Is there any documentation on OnPopulateAudioData?

from audioanalysistools.

BorisKourt avatar BorisKourt commented on May 24, 2024
Screenshot 2023-07-07 at 02 24 06

Is this an appropriate direction? This is in a blueprint with just one Audio Capture in it.

from audioanalysistools.

gtreshchev avatar gtreshchev commented on May 24, 2024

The documentation regarding the OnPopulateAudioData including is here: https://github.com/gtreshchev/RuntimeAudioImporter/wiki/Utilities

Yes, this looks proper. Since streaming and capturable sound waves are inherited from imported sound wave, they support the same functionality and leverage the same internal logic for accumulating and outputting the audio data. If you encounter too many beats occurring, you can take a look at the IsBeatRange function, for example.

from audioanalysistools.

BorisKourt avatar BorisKourt commented on May 24, 2024

Thanks for the replies.

Is there a way to specify the input device by name? Or does this always default to Unreal's system default detection?

I am able to read out the names of available input devices, and see their ids. But it appears that only one of the devices works at a time, none of the device IDs except for that one work. (This is on macos)

from audioanalysistools.

gtreshchev avatar gtreshchev commented on May 24, 2024

I'm not entirely sure, but there might be platform-specific behavior that prevents using multiple input devices simultaneously. Although that's just my assumption, I haven't explored the workflow of capturing with multiple devices at the same time. As for identifying the input device, yes, I believe the only way is to take the ID integer into account when calling StartCapture and specifying the ID.

from audioanalysistools.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.