Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for arduino 1 6 #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Speech library for Arduino

Quick start
-----------
[Download the .zip file from the link at the top of the page or click here.](https://github.com/going-digital/Talkie/zipball/master) Install the "talkie" directory in your Arduino / libraries directory. Restart the Arduino software, and pick one of the examples from the Talkie section. Program it onto a 168 or 328 based Arduino (Uno, Duemilanove or Diecimila - not a Mega or Leonardo). Connect headphones or an audio amplifier to digital pin 3.
[Download the .zip file from the link at the top of the page or click here.](https://github.com/going-digital/Talkie/zipball/master) Install the "Talkie" directory in your Arduino / libraries directory. Restart the Arduino software, and pick one of the examples from the Talkie section. Program it onto a 168 or 328 based Arduino (Uno, Duemilanove or Diecimila - not a Mega or Leonardo). Connect headphones or an audio amplifier to digital pin 3.

Note that currently, Talkie only on 168 or 328 based Arduinos at 16MHz only. A reduced-CPU version for 8MHz devices with reduced speech quality is included in the [Solder Time 2 talkie project.](https://github.com/going-digital/st2_talkie)
Note that currently, Talkie only works on 168 or 328 based Arduinos at 16MHz. A reduced-CPU version for 8MHz devices with reduced speech quality is included in the [Solder Time 2 talkie project.](https://github.com/going-digital/st2_talkie)


Introduction
Expand Down Expand Up @@ -37,7 +37,14 @@ Word dictionaries

* Vocab_US_Male - a male US english voice. 206 words related to aeronautics. 16K bytes in total. Data of unknown origin. ROM serial number VM61002.

* Vocab_US_Male_Large - a male US english voice. 402 words related to aeronautics. 48K bytes speech data. Data of unknown origin. ROM serial number VM61003/4/5.
* Vocab_US_Large - a male US english voice. 402 words related to aeronautics. 48K bytes speech data. Data of unknown origin. ROM serial number VM61003/4/5.


Demos
-----
* _1_Getting_Started - simple demo using some words from Vocab_US_Male

* _2_Voltmeter - a more complete demo using numbers and words from Vocab_US_Male to make a talking voltmeter

* Demo_Toms_Diner - demo of the work-in-progress Talkie compressor. 24K bytes music data. Tom's Diner was written/recorded by Suzanne Vega [(Amazon UK)](http://www.amazon.co.uk/Solitude-Standing-Suzanne-Vega/dp/B000026GZQ) [(Amazon US)](http://www.amazon.com/Solitude-Standing-Suzanne-Vega/dp/B000002GHB) or look for 'Solitude Standing' on your preferred music store. (Only this album contains the original a capella version)

Expand All @@ -57,7 +64,7 @@ Future plans

Important facts
---------------
* LPC currently outputs speech sounds on digital pin 3 only. This is currently hard-wired within the library.
* LPC currently outputs speech sounds on digital pin 3 only. This is hard-wired within the library.
* Tivoice uses Timer 1 and Timer 2, which can break analogWrite(), and some other libraries.


Expand Down
471 changes: 469 additions & 2 deletions Talkie/examples/Demo_Toms_Diner/Demo_Toms_Diner.ino

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions Talkie/examples/Vocab_Soundbites/Vocab_Soundbites.ino

Large diffs are not rendered by default.

334 changes: 168 additions & 166 deletions Talkie/examples/Vocab_UK_Acorn/Vocab_UK_Acorn.ino

Large diffs are not rendered by default.

74 changes: 38 additions & 36 deletions Talkie/examples/Vocab_US_Clock/Vocab_US_Clock.ino

Large diffs are not rendered by default.

811 changes: 407 additions & 404 deletions Talkie/examples/Vocab_US_Large/Vocab_US_Large.ino

Large diffs are not rendered by default.

416 changes: 209 additions & 207 deletions Talkie/examples/Vocab_US_Male/Vocab_US_Male.ino

Large diffs are not rendered by default.

724 changes: 363 additions & 361 deletions Talkie/examples/Vocab_US_TI99/Vocab_US_TI99.ino

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions Talkie/examples/_1_Getting_Started/_1_Getting_Started.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Talkie library
// Copyright 2011 Peter Knight
// This code is released under GPLv2 license.

// GaryA 4/2018 Modified to compile without warnings in Arduino 1.6 onwards

//
// Welcome to the Talkie library examples.
//
Expand All @@ -11,17 +14,17 @@
// Sound is output on digital pin 3. It can drive headphones directly, or add a simple audio amplifier to drive a loudspeaker.
//

#include "talkie.h"
#include "Talkie.h"

Talkie voice;

uint8_t spDANGER[] PROGMEM = {0x2D, 0xBF, 0x21, 0x92, 0x59, 0xB4, 0x9F, 0xA2, 0x87, 0x10, 0x8E, 0xDC, 0x72, 0xAB, 0x5B, 0x9D, 0x62, 0xA6, 0x42, 0x9E, 0x9C, 0xB8, 0xB3, 0x95, 0x0D, 0xAF, 0x14, 0x15, 0xA5, 0x47, 0xDE, 0x1D, 0x7A, 0x78, 0x3A, 0x49, 0x65, 0x55, 0xD0, 0x5E, 0xAE, 0x3A, 0xB5, 0x53, 0x93, 0x88, 0x65, 0xE2, 0x00, 0xEC, 0x9A, 0xEA, 0x80, 0x65, 0x82, 0xC7, 0xD8, 0x63, 0x0A, 0x9A, 0x65, 0x5D, 0x53, 0xC9, 0x49, 0x5C, 0xE1, 0x7D, 0x2F, 0x73, 0x2F, 0x47, 0x59, 0xC2, 0xDE, 0x9A, 0x27, 0x5F, 0xF1, 0x8B, 0xDF, 0xFF, 0x03};
uint8_t spMOTOR[] PROGMEM = {0x66, 0xAA, 0x8C, 0x69, 0x53, 0x92, 0xC4, 0x2D, 0x2F, 0x6B, 0x2A, 0x74, 0xDA, 0x9D, 0xB2, 0xDD, 0xF6, 0x36, 0xAB, 0xCE, 0x78, 0xDA, 0x9D, 0xB2, 0xD5, 0x9A, 0x01, 0xDB, 0x77, 0x45, 0xA0, 0x75, 0xC5, 0xB8, 0x71, 0x59, 0xDA, 0x31, 0xE5, 0x6A, 0x22, 0x63, 0xDE, 0xDA, 0x9A, 0xBB, 0xA3, 0x75, 0x68, 0xAF, 0x7B, 0x3E, 0xC3, 0x9D, 0x97, 0x60, 0x87, 0xE6, 0x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A, 0x8A, 0x1D, 0xF0, 0x75, 0x3F, 0x73, 0xAC, 0x87, 0x3B, 0xA2, 0x0B, 0xAA, 0x2B, 0xCF, 0xE4, 0x10, 0xA1, 0xDC, 0x45, 0x64, 0x03, 0x00, 0x80, 0x01, 0x66, 0x36, 0x33, 0xC0, 0xAB, 0xD5, 0x0A, 0x68, 0x25, 0x85, 0x02, 0xFF, 0x0F};

void setup() {
voice.say(spDANGER);
Expand Down
Loading