Mic (Quarky Intellio)
Extension Description
This extension provides blocks and Python functions to record audio, save recordings, monitor sound levels, and stream microphone data.
-
Available in: Block Coding, Python Coding
-
Mode: Stage Mode, Upload Mode
-
WiFi Required: Yes
-
Compatible Hardware in Block Coding: Quarky Intellio
-
Compatible Hardware in Python: Quarky Intellio
-
Object Declaration in Python: intellio = QuarkyIntellio()
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.
Read More
PictoBlox Blocks
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
