Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

API reference

arjo129 edited this page Dec 17, 2012 · 10 revisions

This page outlines the core functions of the µSpeech library. At its heart the µSpeech library is made of 2 parts: the Signal API and the Speech comparator API. The Signal API provides a raw interface to the microphone signal using nicely wrapped C++ objects.

The Signal API

signal voice(A0);

This line creates a new µspeech signal object. The signal object is where all of µspeech's logic resides.

void calibrate();

This line calibrates the voice object so as to remove noise and interference from the system.

char getPhoneme();

This returns the closest phoneme guess to the real phoneme, if it is too quiet the system will return ' ' and 'm' if there was an error.

Clone this wiki locally