Available since firmware version 7.6
The roMicrophone component sends the roMicrophoneEvent
with the following predicates that indicate its valid event types:
IsRecordingInfo() as Boolean
True
when the microphone is open.
GetInfo() as Object
Returns an roAssociativeArray
containing the following information:
Key | Type | Value |
---|---|---|
format | string | the audio data format (ex. pcm-s16-le) |
num_channels | integer | the number of channels (ex. 1 for mono) |
sample_rate | integer | the audio sample rate (ex. 16000 for 16kHz) |
sample_data | roByteArray | signed 16-bit integer containing audio data as PCM (little-endian format) |
level | integer | value displaying a calculated volume level between 0 (silence) and 100 (maximum) |
IsRecordingDone() as Boolean
Indicates that the microphone recording session has been closed.