rolandoislas / PeripheralsPlusOne

A pseudo-port of miscperipherals, with other stuff as well!
https://minecraft.curseforge.com/projects/peripheralsplusone
GNU General Public License v2.0
9 stars 11 forks source link

Speaker cannot speak different languages #8

Open SeaLife opened 6 years ago

SeaLife commented 6 years ago

Description

Hey! - The Speaker cannot play a string by a different language! :(

Steps to Reproduce

lua#> chat = peripheral.wrap("top")
lua#> chat.speak("Hallo", 100, "de") -- does not work
lua#> chat.speak("Hallo", 100, "de_DE") -- does not work
lua#> chat.speak("Hallo", 100, "deutsch") -- does not work
lua#> chat.speak("Hallo", 100, "german") -- does not work
lua#> chat.speak("Hallo") -- works but is literally wrong spoken out

Expected behavior: The word "Hallo" said in german language.

Actual behavior: Nothing. Not even a error in console.

Stacktrace (if applicable): n/a

Version affected: PeripheralsPlusOne-1.12.2-1.1-build-T58.jar Forge 14.23.2.2627

rolandoislas commented 6 years ago

PeripheralsPlusOne comes with only one voice (kevin16). Previous implementations used Google Translate for the voice, allowing for more available languages.

https://peripheralsplusone.readthedocs.io/en/latest/peripherals/speaker/

SeaLife commented 6 years ago

Hey, thanks for your reply!

So how i see it now - i cant just use "german" as a voice to get my sentences correctly spoken out.. (cause google translate service was removed?)

Regards SeaLife

rolandoislas commented 6 years ago

I plan on adding support for MBROLA voices http://tcts.fpms.ac.be/synthesis/mbrola.html.

Edit: The text to speech library used (FreeTTS) does not support languages other than English. For the time being, additional languages will not be added to PeripheralsPlusOne.