Mic (Quarky Intellio)

Quarky Intellio Extension
Extension Description
This extension provides blocks and Python functions to record audio, save recordings, monitor sound levels, and stream microphone data.

Introduction

The Mic (Quarky Intellio) extension allows users to record and analyze audio using the built-in microphone of Quarky Intellio. It provides blocks and Python functions to record audio, save recordings, monitor sound levels, and stream microphone data.

Using this extension, you can:

  • Record audio using the built-in microphone.
  • Save audio recordings to a specified file.
  • Record audio for a fixed duration.
  • Record audio until the recording process finishes.
  • Save the recorded audio to the device’s flash memory.
  • Stop an ongoing recording.
  • Detect whether the microphone is currently recording.
  • Measure sound intensity using RMS values in decibels (dB).
  • Detect microphone volume levels for sound-triggered actions.
  • Stream live microphone data.

This extension is useful when creating voice recording applications, sound detection systems, noise-triggered automation, and audio-based robotics projects using Quarky Intellio.

Connecting Quarky Intellio with PictoBlox

Let’s begin by first connecting Quarky Intellio to PictoBlox. Follow the step-by-step instructions in the Quarky Intellio Connection Guide to establish the connection.

Refer to the guide here:Connection Guide Redirection Page

Read More

PictoBlox Blocks

This block starts recording audio to a specific file for the specified duration (in seconds) and saves the recording in wav or amr format.
This block starts recording audio to a specific file for the specified duration (in seconds) and saves the recording in wav or amr format. The recording continues until it is complete, and the script pauses until it finishes.
This block starts recording audio to a specific file for the specified duration (in seconds) and saves the recording in wav or amr format. The file is stored in the internal flash memory.
This block begins continuous audio recording and saves the recording to the specified file in the selected wav or amr format.
This block stops the current audio recording and saves the recorded file.
This block reports whether the microphone is currently recording audio or not. It returns True or False and can display the value on the stage.
This block measures the Root Mean Square (RMS) value of the sound signal and returns it in decibels (dB), representing the sound intensity
This block returns a simplified numerical value representing the current sound intensity detected by the microphone. It is useful for triggering actions based on sound levels, such as claps or loud noises.
This block starts or stops live microphone streaming, allowing the audio input to be processed in real time.
All articles loaded
No more articles to load

Python Functions

This function starts recording audio to a specific file for the specified duration (in seconds) and saves the recording in wav or amr format.
Syntax: start recording in ( ) for ( ) seconds in ((“rec”,’1′,5)
This function starts recording audio to a specific file for the specified duration (in seconds) and saves the recording in wav or amr format. The recording continues until it is complete, and the script pauses until it finishes.
Syntax: start recording in ( ) for ( ) seconds in ( ) until comple(“rec”,’1′,5)
This function starts continuous audio recording until the recording is stopped manually.
Syntax: recordStart(“rec”,’1′)
This function stops the ongoing audio recording.
Syntax: stoprecording( )
This function returns True or False depending on whether the microphone is currently recording
Syntax: isrecording( )
All articles loaded
No more articles to load
Table of Contents