TalkiePCM
All Classes Functions
Public Member Functions | List of all members
TalkiePCM Class Reference

Talkie is a software implementation of the Texas Instruments speech synthesis architecture (Linear Predictive Coding) from the late 1970s. More...

#include <TalkiePCM.h>

Public Member Functions

 TalkiePCM (Print &out, int channelCount=1)
 
void setOutputAsText (bool flag)
 converts samples to csv string format More...
 
void say (const uint8_t *address)
 converts the provided word into samples More...
 
void silence (uint16_t ms)
 outputs silence for the indicated milliseconds More...
 
void sayPause ()
 
void sayDigit (char aDigit)
 
void sayVoltageMilliVolts (long aMilliVolt)
 
void sayVoltageVolts (float aVolt)
 
void sayTimeout ()
 
void sayNumber (long aNumber)
 say any number between -999,999 and 999,999 More...
 
void sayFloat (float aFloat, int aDecimalPlaces, bool aSuppressLeadingZero, bool aSuppressTrailingZero)
 
void setOutput (Print &out)
 Defines the Arduino data target. More...
 
void setDataCallback (void(*cb)(int16_t *data, int len))
 Defines the data callback that receives the generated samples. More...
 
void setChannels (uint16_t ch)
 
void setVolume (float vol)
 

Detailed Description

Talkie is a software implementation of the Texas Instruments speech synthesis architecture (Linear Predictive Coding) from the late 1970s.

Author
Peter Knight, Phil Schatzmann

Member Function Documentation

◆ say()

void TalkiePCM::say ( const uint8_t *  address)
inline

converts the provided word into samples

◆ sayNumber()

void TalkiePCM::sayNumber ( long  aNumber)
inline

say any number between -999,999 and 999,999

◆ setChannels()

void TalkiePCM::setChannels ( uint16_t  ch)
inline

Defines the number of generated output channels (2=stereo). Default is 1 = mono.

◆ setDataCallback()

void TalkiePCM::setDataCallback ( void(*)(int16_t *data, int len)  cb)
inline

Defines the data callback that receives the generated samples.

◆ setOutput()

void TalkiePCM::setOutput ( Print &  out)
inline

Defines the Arduino data target.

◆ setOutputAsText()

void TalkiePCM::setOutputAsText ( bool  flag)
inline

converts samples to csv string format

◆ setVolume()

void TalkiePCM::setVolume ( float  vol)
inline

Volume factor: > 1.0f means amplify; < 1.0f means lower volume. Default is 1.0f

◆ silence()

void TalkiePCM::silence ( uint16_t  ms)
inline

outputs silence for the indicated milliseconds


The documentation for this class was generated from the following file: