Commit Graph
3676 Commits
Author SHA1 Message Date
Reece H. Dunn 0be3cbde76 Merge remote-tracking branch 'sthibaul/audio_reopen' 2018-05-03 20:31:51 +01:00
Samuel Thibault d844a47804 Make it possible to restart speech even when audio open failed once
When notably the audio card is busy, we should report the issue to the
application, but still permit the application to retry submitting text
to synth, and eventually succeed to open it.

This change simply fixes the update of the out_samplerate variable to track
whether audio is open, and if not when text is submitted by the application,
try again to open it.
2018-05-03 21:27:02 +02:00
Samuel Thibault f75c5ccbe3 Fix out of bound access when buffer size is odd
Valgrind reports

==20307== Invalid write of size 1
==20307==    at 0x4E856FE: Wavegen.part.1 (wavegen.c:880)
==20307==    by 0x4E86682: Wavegen (wavegen.c:670)
==20307==    by 0x4E86682: Wavegen2 (wavegen.c:1235)
==20307==    by 0x4E86682: WavegenFill2 (wavegen.c:1317)
==20307==    by 0x4E86CA7: WavegenFill (wavegen.c:1398)
==20307==    by 0x4E7093F: Synthesize (speech.c:442)
==20307==    by 0x4E712E0: sync_espeak_Synth (speech.c:549)
==20307==    by 0x4E8A5C0: process_espeak_command (espeak_command.c:317)
==20307==    by 0x4E8B387: say_thread (fifo.c:333)
==20307==    by 0x50E85A9: start_thread (pthread_create.c:463)
==20307==    by 0x53F5CBE: clone (clone.S:95)
==20307==  Address 0xad5e1bd is 0 bytes after a block of size 2,205 alloc'd
==20307==    at 0x4C2CABF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20307==    by 0x4C2EE04: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20307==    by 0x4E70CFC: espeak_ng_InitializeOutput (speech.c:286)
==20307==    by 0x4E6176E: espeak_Initialize (espeak_api.c:67)
==20307==    by 0x10A5D8: initialize_espeak (espeak.c:303)
==20307==    by 0x109D1D: main (espeakup.c:201)
==20307==

Indeed, the out_ptr >= out_end test is not enough: it only checks that
one byte can fit the buffer, while klatt and wavegen produce two bytes.
2018-05-03 21:04:53 +02:00
Reece H. Dunn 888bb71bbf Add Hatian Creole to the language list. 2018-05-02 19:55:50 +01:00
Valdis Vitolins 82214e80cf ru: issue #474 — 'л' and 'н' should be palatalized instead of softened before iotated vowel 2018-05-02 21:18:36 +03:00
Valdis Vitolins 8be30d259e ht: issue #452 — add initial support for Haitian Creole language 2018-05-02 21:04:44 +03:00
Valdis Vitolins f2c2ec5da0 lv: improve sound of 'zv' 2018-05-02 21:01:16 +03:00
Valdis Vitolins 05ec8d89ed docs: change MBROLA's info file to README.txt as it is named in GitHub 2018-05-02 20:58:45 +03:00
Valdis Vitolins c2edaa50a2 docs: separate pre- and post- rules in examples to make them less confusing.
Write more explicit table header for phonetic spelling.
2018-05-02 20:57:23 +03:00
Juho Hiltunen 6d751c93bf wavegen.c: Fix -Wunused-but-set-variable warning. 2018-05-01 19:02:32 +01:00
Juho Hiltunen f4aec775cf compiledata.c: Fix -Wunused-result warning. 2018-05-01 19:02:21 +01:00
Reece H. Dunn afc29cd776 ru: pronounce the single-letter particles as letters when requested to (_letter) and at the end of sentences. 2018-05-01 18:54:04 +01:00
Reece H. Dunn d2b2b819d4 Revert "ru: fix for 'щ'"
This reverts commit 1e8e037613.
2018-05-01 18:28:11 +01:00
Reece H. Dunn 89402caa3f de: fix the formatting of the file 2018-05-01 18:18:04 +01:00
Reece H. Dunn ab383c97f9 de: revert 'gn' in Gnom, etc.. 2018-05-01 18:17:46 +01:00
Reece H. Dunn b6f9f89753 de: fix stress for 100 and 1000. 2018-05-01 18:16:46 +01:00
Reece H. Dunn e5a6d6b4bb de: remove symbol entries defined in en_emoji. 2018-04-30 19:27:11 +01:00
Reece H. Dunn cf35226f61 Merge remote-tracking branch 'hozosch/master' 2018-04-30 19:20:55 +01:00
Reece H. Dunn eb8ced46e3 Don't treat words without alpha characters (e.g. emoji) as upper case. 2018-04-30 07:09:28 +01:00
Reece H. Dunn b1754542fb Add a test case for espeak-ng issue #471. 2018-04-30 07:06:56 +01:00
Karl Eick be8cbecbd4 Yet another correction in the list where the tilde was omitted 2018-04-29 16:09:59 +02:00
Karl Eick f9474e81ea Correct 2 entries in list 2018-04-29 16:00:08 +02:00
Karl Eick e1af75c12d Correct mistake in phoneme definition for W~ 2018-04-29 15:34:44 +02:00
Karl Eick abdf5d2c88 Add W~ phoneme, more changes to list and rules 2018-04-29 15:29:08 +02:00
Karl Eick fb8b4a0e8d At last 2 rules for correct compound word pronunciation 2018-04-29 12:54:55 +02:00
Karl Eick 4261894ed7 Add word "summe" in rules for correct compound word pronunciation
I hope that will be my last change. Most of them, like Zitat, gedulds, etc have been added for correct compound word pronunciation. The A: phoneme in komma and beta sounds more natural for me; I also did Komma this way because it matches the way espeak reads it when written as an actual word.
2018-04-29 11:56:35 +02:00
Karl Eick 0d6bd0b67b Added one more rule: "Gedulds" 2018-04-29 11:38:32 +02:00
Karl Eick 33d518aa53 Correct mistake in rule "ik" at end of word 2018-04-29 11:17:03 +02:00
Karl Eick 7735fb3944 Made some more changes to various rules 2018-04-29 11:05:59 +02:00
Karl Eick 45bb1ac3ca Fix pronunciation of the letter name for "c" 2018-04-28 22:22:09 +02:00
Karl Eick 54bcc25efe Add word "Zitat" in rules 2018-04-28 15:17:20 +02:00
Karl Eick 171649b319 Merge branch 'master' of https://github.com/espeak-ng/espeak-ng 2018-04-28 15:35:38 +03:00
Reece H. Dunn b5bc0a52f4 de: move various symbol translations to the emoji file. 2018-04-28 11:53:19 +01:00
Reece H. Dunn 3d94190f89 tools: support espeak-ng based annotations files 2018-04-28 11:45:37 +01:00
Reece H. Dunn 6e219cd73d en: add support for the ℞ (prescription take) symbol 2018-04-28 11:22:34 +01:00
Reece H. Dunn 972bb1b5e0 en: move more symbols to the en_emoji file 2018-04-28 11:18:31 +01:00
Karl Eick 412c5aab98 Remove rules for "hinweg" and "weg", added better treatments for those in list 2018-04-27 21:54:55 +02:00
Karl Eick a26c71cdce change news in rules to new, add word nuance in rules 2018-04-27 21:38:35 +02:00
Karl Eick 6b10af5410 Merge branch 'master' of https://github.com/hozosch/espeak-ng 2018-04-27 21:25:28 +02:00
Karl Eick 5ec9dca263 Slight change to the aau6 formant sequence used for the aU phoneme 2018-04-27 22:11:50 +03:00
Karl Eick 5fcb3b40cc Slight change to the aau6 formant sequence used for the aU phoneme 2018-04-27 20:13:56 +02:00
Karl Eick fd8a3da7ea de: improvements for German language (with shortened commit history) 2018-04-27 16:50:16 +03:00
Reece H. Dunn 9429de14d7 Comment out emoji entries that don't have translations. 2018-04-27 07:48:57 +01:00
Reece H. Dunn ee9606d000 yue: (emoji) -- CLDR 33 emoji translations 2018-04-26 22:24:16 +01:00
Reece H. Dunn b033706432 sd: (emoji) -- CLDR 33 emoji translations 2018-04-26 22:18:58 +01:00
Reece H. Dunn 9c37503f7f gd: (emoji) -- CLDR 33 emoji translations 2018-04-26 22:18:35 +01:00
Reece H. Dunn ecf2c28c7c Update the emoji translations to CLDR 33. 2018-04-26 22:04:18 +01:00
Reece H. Dunn e40380260e de: Fix the phoneme features for /b/. 2018-04-26 07:42:04 +01:00
Reece H. Dunn 19dce78b5f docs: Don't search 3 levels deep for markdown files. 2018-04-25 07:55:24 +01:00
Reece H. Dunn d105d33d59 docs: Reference the local Kishenbaum ASCII-IPA docs in dictionary.md. 2018-04-25 07:54:05 +01:00