npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.adrenak.unimic

v1.2.0

Published

Convenience wrapper over Unity's Microphone class.

Downloads

312

Readme

Cover

UniMic

A wrapper for Unity's Microphone class.

API

Mic class in the Adrenak.UniMic namespace is a singleton and is accessed using Mic.Instance

Properties

  • IsRecording Returns if the Mic instance is recording audio

  • Frequency The frequency of the Microphone AudioClip

  • Sample The last populated sample of the audio data

  • SampleDurationMS The duration of the sample segment in milliseconds that the instance maintains and fires in events.

  • SampleLength The number of samples in the sample segment

  • AudioClip The inner AudioClip of the instance

  • Devices The recording devices that are connected to the machine running the code

  • CurrentDeviceIndex The index of the active device in the Devices list

  • CurrentDeviceName The name of the active device

Events

  • OnStartRecording Event fired when the instance starts to record the audio

  • OnStopRecording Event fired when the instance stops recording the audio

  • OnSampleReady Event fired when a sample of SampleLength has been populated by the instance. Includes the sample count.

  • OnTimestampedSampleReady Event fired when a sample of SampleLength has been populated by the instance. Includes the timestamp from when the sample was captured.

Methods

  • SetDeviceIndex changes the recording device. The method internally restarts the recording process

    • Arguments
      • int index the index of the device in the Devices list
    • Returns
      • void
  • StartRecording starts the microphone recording

    • Arguments
      • int frequency=16000 the frequency of the inner AudioClip
      • int sampleDurationMS the duration of a single sample segment in milliseconds that the instance keeps and fires on event
    • Returns
      • void
  • ResumeRecording resumes the microphone recording at the frequency and sampleDurationMS

  • StopRecording stops the microphone recording

    • Returns
      • void

Tips

Just open the Unity project in Unity 2017.4.40f1+ and try the sample scene.

Contact

@github
@www