ROM Hack Tomodachi Text to speech analysis/mod?

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
so now that im digging around in 3ds game files i was always wondering about replacing the Text to speech engine in tomodachi life.

upon digging around in the files i found the folder thats responsible for the engine.

a folder called libNTTS.
so far
inside the components_cmn_LZ.bin
are 2 files
lid.dat and synth_med_fxd_bet2f16.dat

from what i gather is that lid.dat is all the voice data and the synth_med_fxd_bet2f16.dat is the module that alternates pitch, speed and variation of the voice.

the components_enu_LZ.bin
holds
clc_enu_cfg1.dat
clc_enu_samantha_cfg1.dat and
select_samantha_bet2f16.dat

searching that up shows that tomodachi is most likely using a known TTS engine called "depes tts"
link Link2

the dictionary_enu_LZ.bin holds a userdct_enu.dat that when opened in notepad++ are some words hence the name dictonary_enu
the header_LZ.bin is not a container file but is instead directly read, it seems to be the header code/config for the engine as well as something to do with "British English-Serena (TTS)"

and finally the last file is ruleset_enu_LZ.bin
which holds a userruleset_enu.rst
that simply has this in it

Code:
[header]
language = ENU
charset = utf-8

[data]
/\b(Who|Whom|Whose)(\s+[^.!]*?)\?/   -->   $1$2.
/wii\-u/i   -->   "\\mw\\Wii U\\mw\\"
/fils aime/i   -->   fils-aime
 

duwen

Old Man Toad
Member
Joined
Sep 6, 2013
Messages
3,211
Trophies
2
Location
Bullet Hell
Website
www.exophase.com
XP
4,342
Country
United Kingdom
Something I've wondered about with regards the speech in Tomodachi Life; the English speech in the EUR version has a definite British accent - is it the same in the US version, or does it have an American accent? If it's the latter it could be possible to 'patch in' other regions accents.
Similarly, when you have an islander from somewhere like Japan or Korea visit your island it makes no attempt to translate names or messages via the text-to-speech - would it be possible to combine foreign dictionaries with the stock version to fix this?
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
like Japan or Korea visit your island it makes no attempt to translate names or messages via the text-to-speech - would it be possible to combine foreign dictionaries with the stock version to fix this?
Don't think so seeing how there only one set of language files for each ver. It's one or the other as far as I know
 
Last edited by xdarkmario,

LeafyIsHere

Well-Known Member
Newcomer
Joined
Aug 23, 2016
Messages
45
Trophies
0
XP
162
Country
United States
@xdarkmario @Calafska
Cool, I just figured out what exactly those .bin "ENU" files are, and how they can be swapped out for higher quality versions.

Tomodachi Life voices are created using low-quality versions of TTS voices from Nuance.
I found a site that allows you to download a demo of any Nuance TTS voice (all are high-quality).
Surprisingly, the computer TTS files are the same file-format as the Tomodachi Life speech files. (except they are HUGE compared)
Here is my Tom US voice:
Untitled.png

I think someone COULD replace the 3DS Tomodachi speech files with the high quality ones,
but the game would take up like 2 gigabytes.
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
@xdarkmario @Calafska
Cool, I just figured out what exactly those .bin "ENU" files are, and how they can be swapped out for higher quality versions.

Tomodachi Life voices are created using low-quality versions of TTS voices from Nuance.
I found a site that allows you to download a demo of any Nuance TTS voice (all are high-quality).
Surprisingly, the computer TTS files are the same file-format as the Tomodachi Life speech files. (except they are HUGE compared)
Here is my Tom US voice:
View attachment 75825
I think someone COULD replace the 3DS Tomodachi speech files with the high quality ones,
but the game would take up like 2 gigabytes.
Interesting, Good find. In this age of mass storage 2gb are nothing. I might try this
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
also theres a file in there called
clc_enu_samantha_cfg1.dat

goggling that i found a source code

Github

and that points to some old android Motorola tts files.
which is kinda odd because thats another engine.
as well as another company called
Nuance, a (TTS company)

see here for some of there work. if we can at least replace it with this this would be cool
http://codefactoryglobal.com/speech-technology/voice-licensing/
dosent look free but its a example
 
Last edited by xdarkmario,

LeafyIsHere

Well-Known Member
Newcomer
Joined
Aug 23, 2016
Messages
45
Trophies
0
XP
162
Country
United States
also theres a file in there called
clc_enu_samantha_cfg1.dat

goggling that i found a source code

Github

and that points to some old android Motorola tts files.
which is kinda odd because thats another engine.
as well as another company called
Nuance, a (TTS company)

see here for some of there work. if we can at least replace it with this this would be cool
http://codefactoryglobal.com/speech-technology/voice-licensing/
dosent look free but its a example
Hmm, I am almost certain almost any SAPI TTS voice would work,
I have been researching TTS voices and how they work, and it seems like almost every voice is the same file-format.

All that we need now is a way to unpack and repack the .dat files in libNTTS.
The EveryFileExplorer only unpacks them, sadly...
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
Hmm, I am almost certain almost any SAPI TTS voice would work,
I have been researching TTS voices and how they work, and it seems like almost every voice is the same file-format.

All that we need now is a way to unpack and repack the .dat files in libNTTS.
The EveryFileExplorer only unpacks them, sadly...
well if we cant unpack them then maybe we need to inject mods into the files.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I'd rather spend like $150 more for a surround receiver.
  • K3Nv2 @ K3Nv2:
    I bought the game at launch never fucked with it until recently
  • BigOnYa @ BigOnYa:
    Its fun, I like it, even tho I'm not a big harry potter fan. Like a wizard rpg. Flying around on a broomstick is cool.
  • K3Nv2 @ K3Nv2:
    Flying sucks ass on it
  • BigOnYa @ BigOnYa:
    Nuh just takes a min to get used to. I think you can upgrade or buy new broomstick also that are better.
    +1
  • K3Nv2 @ K3Nv2:
    I weirdly like inverted controls on all flying type games
  • BigOnYa @ BigOnYa:
    Prob can change it, inverted flying controls.
  • K3Nv2 @ K3Nv2:
    Only thing that annoys me is trying to find wtf to do in it
    +1
  • BigOnYa @ BigOnYa:
    Alright off to the store, later gators.
    +1
  • K3Nv2 @ K3Nv2:
    Some places amaze me were not in network with your insurance would you still like an appointment
    +1
  • AncientBoi @ AncientBoi:
    uhhh, I think I'll just stick with my PSP 3001
  • AncientBoi @ AncientBoi:
    lol, Now I gotta go to the store for more Coffee Mate n other stuff.
  • Xdqwerty @ Xdqwerty:
    i downloaded final fantasy vii into my tv stick
  • Xdqwerty @ Xdqwerty:
    i mean, the game was already there but its the japanese version
  • Xdqwerty @ Xdqwerty:
    and i only downloaded disc 1 so far bc of storage stuff
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah the patty on McDs burger is 1/10th of a pound now and I think that's the pre cooked weight lol
  • Psionic Roshambo @ Psionic Roshambo:
    I use the app for the 20% off coupon and it's still over priced
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why is mcdonalds overpriced if their food is bad?
  • Xdqwerty @ Xdqwerty:
    i mean why is mcdonalds food overpriced
  • Psionic Roshambo @ Psionic Roshambo:
    Inflation and greed
    +1
  • ZeroT21 @ ZeroT21:
    it's just fries, make 'em at home
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I make potato wedges at home with spices and stuff lol
    Psionic Roshambo @ Psionic Roshambo: I make potato wedges at home with spices and stuff lol