You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
The original version can be found [here](https://github.com/going-digital/Talkie)
8
8
A good explanation of the TMS5220 operation and the LPC frame format can be found [here](https://github.com/mamedev/mame/blob/master/src/devices/sound/tms5220.txt)
9
9
10
-
Youtube Demonstration of Talkie Voltmeter example
10
+
YouTube Demonstration of Talkie Voltmeter example
11
11
12
12
[](https://www.youtube.com/watch?v=6jXkugZTwCs)
13
13
@@ -25,25 +25,26 @@ Youtube Demonstration of Talkie Voltmeter example
25
25
-**ARM0** (but not tested) as found on the **SAMD**, **Teensy** and **Particle** boards.
26
26
27
27
## Hints
28
-
- 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.
29
-
-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.
30
-
- The Library uses Timer 1 and Timer 2, so libraries like Tone, Servo, analogWrite(), and some other libraries cannot be used while speaking.
28
+
-**Connect the speaker between 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.
29
+
- I use the speakers from old earphones or headphones, which have approximately 32 Ohm, directly without a series resistor. The headphone speaker tend to be much louder, especially when they stay in their original housings.
30
+
- The library uses Timer 1 and Timer 2, so libraries like Tone, Servo, analogWrite(), and some other libraries cannot be used while speaking.
31
31
- After a call to say... you can use tone() again.
32
32
- 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.
33
+
- If you want to use SPI functions **while Talkie is speaking**, then disable Talkies usage of pin 11 by `Talkie Voice(true, false);` instead of `Talkie Voice;`**or**`Voice.doNotUseUseInvertedOutput();`.
33
34
- Porting to ATtinys is not possible, since they lack the hardware multiplication. ( Believe me, I tried it! )
34
35
35
36
## Own vocabulary
36
37
To create LPC data you can use [Qboxpro](http://ftp.whtech.com/pc%20utilities/qboxpro.zip), 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](http://www.download-dll.com/dll-BWCC.dll.html).
37
38
The process is described [here](http://furrtek.free.fr/index.php?a=speakandspell&ss=9&i=2) and goes like this:
38
-
- Create a new project using the following project parameters : Byte / 8 Khz / 5220 coding table
39
+
- Create a new project using the following project parameters : Byte / 8 KHz / 5220 coding table
39
40
- Goto Project and add the audio file
40
41
- Choose process using : medium bit rate and pressing OK
41
-
- Edit concatenation : insert concatenation after by adding a name; then insert phrase and press ok
42
+
- Edit concatenation : insert concatenation after by adding a name; then insert phrase and press OK
42
43
- Format it by choosing the first line in the format menu : LPC 10V, 4UV
43
44
44
-
Another way to generate the LPC data is to use the pyton script at https://github.com/ptwz/python_wizard
45
+
Another way to generate the LPC data is to use the python script at https://github.com/ptwz/python_wizard
45
46
46
-
###Schematic for voltmeter example
47
+
## Schematic for voltmeter example
47
48

48
49
49
50
# Modifying library properties
@@ -53,10 +54,13 @@ The library files itself are located in the `src` sub-directory.<br/>
53
54
If you did not yet store the example as your own sketch, then with Ctrl+K you are instantly in the right library folder.
54
55
55
56
# Revision History
57
+
### Version 1.0.1
58
+
- Added SPI compatibility by not resetting pin 11 to input if SPI is detected
59
+
- Added new constructor Talkie(bool aUseNonInvertedOutputPin, bool aUseInvertedOutputPin);
56
60
### Version 1.0.0
57
-
Initial Arduino library version
61
+
-Initial Arduino library version
58
62
59
-
##Travis CI
63
+
# Travis CI
60
64
The Talkie library examples are built on Travis CI for the following boards:
Copy file name to clipboardExpand all lines: src/Talkie.h
+2
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,12 @@
44
44
#defineFIFO_BUFFER_SIZE24// 24 sets of 4 bytes plus added queue indexes is about 100 added bytes.
45
45
46
46
#defineTALKIE_USE_PIN_FLAG0xFF// Flag to signal, that pin should be used as output, but pin number is not yet filled in, since it depends of board type.
47
+
#defineTALKIE_DO_NOT_USE_PIN_FLAG0x00// As pin number is initially != 0xFF, this is not really needed at startup
0 commit comments