Speaker (Quarky Intellio)

Quarky Intellio Extension
Extension Description
This Speaker (Quarky Intellio) extension provides blocks and Python functions to play predefined sounds, audio files, online audio, and spoken text.

Introduction

The Speaker (Quarky Intellio) extension allows users to play sounds, generate tones, and use text-to-speech through the built-in speaker. It provides blocks and Python functions to play predefined sounds, audio files, online audio, and spoken text.

Using this extension, you can:

  • Play predefined sounds from the device.
  • Play audio files stored on the device.
  • Play audio files until playback finishes.
  • Play audio files stored in the device’s flash memory.
  • Stream and play audio from a URL.
  • Generate tones using specific frequencies.
  • Adjust the speaker volume.
  • Pause or resume audio playback.
  • Stop currently playing audio.
  • Retrieve the current playback time.
  • Configure the text-to-speech language.
  • Select a male or female voice for speech synthesis.
  • Convert text into spoken audio.

This extension is useful when creating interactive projects, voice feedback systems, alerts, sound effects, and text-to-speech applications 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 plays a predefined sound or voice line through the Quarky Intellio speaker.
This block plays an audio file (mp3, wav, or amr) stored on the device or defined in the project.
This block plays the selected audio file and waits until the playback finishes before executing the next block.
This block plays a pre-saved audio file stored in the device’s internal flash memory.
This block fetches and plays an audio file directly from a web link.
This block generates a sound at the specified frequency (in Hertz) for the given duration in milliseconds through the Quarky Intellio speaker. It is useful for creating beeps, alerts, or simple sound signals in your project.
This block sets the speaker output volume between 0 and 100.
This block controls the playback state of the current sound on the Quarky Intellio speaker. You can choose from the following options: Stop, Pause and Resume.
This block returns the playback time of the currently playing sound in milliseconds.
This block configures the text-to-speech synthesizer to use a specific language or regional accent (for example, English, Hindi, German, or Mandarin).
This block sets the gender of the synthesized voice, allowing you to choose between a male or female voice output for text-to-speech.
This block converts written text into spoken audio using the text-to-speech engine.
All articles loaded
No more articles to load

Python Functions

This function plays a predefined sound or voice line through the speaker. Example 1 = Hi, I am Quarky Intellio. 2 = Turn Left. etc.
Syntax: playfile(‘1’)
This function plays an audio file stored on the device or project.
Syntax: playosund(“file name”, ‘1’)
This function plays an audio file and waits until playback finishes.
Syntax: playsounduntildone(“file name”, ‘1’)
This function plays an audio file stored in the internal flash memory.
Syntax: playfromflash(“file name”)
This function plays an audio file from a web link.
Syntax: playURL(“https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.mp3”)
This function sets the speaker volume level of Quarky Intellio. The volume level can be set between 0 (silent) and 100 (maximum volume).
Syntax: setspeakervolume(50)
This function returns the current playback time of the audio in milliseconds.
Syntax: getplayedtime( )
This function sets the language used for text-to-speech.
Syntax: setlanguage( )
This function converts text into speech.
Syntax: speakTTS( )
All articles loaded
No more articles to load
Table of Contents