mic_stream 0.4.0-dev copy "mic_stream: ^0.4.0-dev" to clipboard
mic_stream: ^0.4.0-dev copied to clipboard

outdated

Provides a tool to get the microphone input as PCM Stream [Android only]

0.4.0-dev #

  • Rewrite Microphone class to work properly
  • Remove List
  • Remove microphone()!

BREAKING CHANGE: This update REMOVES Stream <List <int>> POSSIBILITIES!!! If you rely on List Streams, DO NOT UPDATE!

However, Stream

Apologies for any inconvenience; from now on, I'll try to assure backwards compatibility.

0.3.0 #

  • Rewrite the whole setup
    • Provide Microphone class taking same input parameters
      • Provides .stream and .asBroadcast getters to get the audio stream
  • Rewrite microphone function to use above Microphone class instead

0.2.1 #

  • Update permission plugin dependency

  • Make AndroidX compatible

0.2.0+2

  • Formatted Code.

0.2.0+1

  • Updated README.

0.2.0 #

  • Fixed value truncation, now ensuring correct values for 16BIT_PCM
  • Added a better example application in ./example/lib/main.dart

0.1.5 #

  • Fixed Issue #8, causing immediate crashes in the latest flutter update

0.1.4 #

  • Removed Debug output
  • Fixed casting issue
  • Added Error handling for exceptions thrown on wrong AudioRecord params

0.1.3 #

  • Updated README.

0.1.2 #

  • Added 16Bit PCM mode

0.1.1 #

  • Added customisability for the recorder
  • Added some error handling of the input params

0.1.0 #

  • Rewritten Plugin to make use of EventChannel.StreamHandlers (Much nicer than before)

  • microphone({Options}) returns a Stream<List

    • The stream starts upon onListen() and runs until onCancel()
  • listen to the stream to start recording

  • stop the subscription to stop

0.0.8 #

  • Calculations of durations, as multi-threading currently makes it not working. Will be included in future releases
  • Some unit tests (Will be extended in the future to fully ensure the plugin's working)

0.0.7 #

  • Fixed crucial bug from 0.0.6

0.0.6 #

  • Smaller changes

0.0.5 #

  • Setter for microphone (audioSource, sampleRate, channelConfig, audioFormat)

0.0.4 #

  • Changed Values for default and maximum sample rate (to 32 kHZ and 48 kHZ, respectively)

0.0.3 #

  • pause: Pauses writing data to the stream
  • resume: Resumes a paused stream

0.0.2 #

  • Getter for internal stream: microphone.stream

0.0.1 #

Initial release - Android support only!

Provides the Class Microphone inheriting StreamController

Constructor takes the Sample Rate as optional argument.

Provides methods to:
  • platformVersion: Getter to return current platform version
  • bufferSize: Getter to return current buffer size (calculated from the sample size)
  • isRecording: Returns the state of the class
  • sampleRate: Setter to manually update the sample rate (use with caution, though)
  • close: Closes the internal StreamController
  • toString: Pass-through to internal StreamController
97
likes
0
points
840
downloads

Publisher

unverified uploader

Weekly Downloads

Provides a tool to get the microphone input as PCM Stream [Android only]

Homepage

License

unknown (license)

Dependencies

flutter, permission

More

Packages that depend on mic_stream