Skip to content
Refurbished version of the Talkie library from Peter Knight for Arduino.
C C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
extras Right pins now Jan 27, 2019
src Comments Jul 4, 2019
.travis.yml Serial wait for Leonardo boards Feb 9, 2019
LICENSE.txt Initial Version Dec 24, 2018
README.md Comments Jul 4, 2019
keywords.txt Comment Jan 27, 2019
library.properties Begin ARM port Jan 27, 2019

README.md

Talkie

License: GPL v3 Build Status

Speech library for Arduino

The original version can be found here A good explanation of the TMS5220 operation and the LPC frame format can be found here

Youtube Demonstration of Talkie Voltmeter example

Demonstration of Talkie Voltmeter example

Improvements to the original and to the non blocking version of PaulStoffregen

  • Improved code so Talkie now runs on 8MHz Arduino (with millis() interrupt disabled while talking).
  • Fixed the ISR_RATIO Bug for plain Arduino.
  • Added utility functions sayQNumber(), sayQFloat(), sayQVoltageMilliVolts() extracted from the examples.
  • Inverted output at pin 11 is enabled by default to increase volume for direct attached piezo or speaker.
  • Added comments and did refactoring to better understand the functionality.
  • Added compatibility to Arduino Tone library by stopping timer1 interrupts at every end of speech.
  • Extracted initializeHardware() and terminateHardware() functions for easy adapting to other platforms.
  • Currently supporting:
    • ATmega328 as found on the Uno and Nano bords.
    • ATmega32U4 as found on the Leonardo and CircuitPlaygound boards.
    • ARM0 (but not tested) as found on the SAMD, Teensy and Particle boards.

Hints

  • Connect the speaker to digital pin 3 and 11 of Arduino. They are enabled as non inverted and inverted outputs by default to increase volume for direct attached piezo or speaker.
  • As speaker I use the speakers from old earphones or headphones, which have ca. 32 Ohm, directly without a series resistor. The headphone speaker tend to be much louder, especially when they stay in their original housings.
  • The Library uses Timer 1 and Timer 2, so libraries like Tone, Servo, analogWrite(), and some other libraries cannot be used while speaking.
  • After a call to say... you can use tone() again.
  • To use Servo write() after a call to say... you must detach() and attach() the servo before first write() in order to initialize the timer again for Servo.
  • Porting to ATtinys is not possible, since they lack the hardware multiplication. ( Believe me, I tried it! )

Own vocabulary

To create LPC data you can use Qboxpro, an unsupported old Windows application running under XP, which can produce Talkie compatible data streams. The missing BWCC.DLL (Borland Windows Custom Control Library) can be found e.g. here. The process is described here and goes like this:

  • Create a new project using the following project parameters : Byte / 8 Khz / 5220 coding table
  • Goto Project and add the audio file
  • Choose process using : medium bit rate and pressing OK
  • Edit concatenation : insert concatenation after by adding a name; then insert phrase and press ok
  • Format it by choosing the first line in the format menu : LPC 10V, 4UV

Another way to generate the LPC data is to use the pyton script at https://github.com/ptwz/python_wizard

Schematic for voltmeter example

Fritzing schematic for voltmeter example

Revision History

Version 1.0.0

Initial Arduino library version

Travis CI

The Talkie library examples are built on Travis CI for the following boards:

  • Arduino Uno
  • Arduino Leonardo
  • Arduino Mega 2560
  • Arduino cplayClassic

Requests for modifications / extensions

Please write me a PM including your motivation/problem if you need a modification or an extension.

If you find this library useful, please give it a star.

You can’t perform that action at this time.