New tool (3.4.1 ) ReSpeak TTS

If I recall correctly, eSpeak on OS X is only available via command line (Terminal), which is why it cannot be selected as an .exe. I wonder if @taktik could help us here, figuring it out.

@Neuro_No_Neuro
I just upgraded to Catalina and tried change some patterns for selectable exe.
osx
this pattern {"*.*"} forks for me. Nothing is greyed,
osx1
but i cant render sample because ā€œespeakā€ dont work in my emulation / cpu not supported :frowning: /
osx2

macOS version?

1 Like

hello,
I donā€™t have an original mac.
Just emulation via qemu and itā€™s not very nimble.
Unfortunately, itā€™s a low priority for me, maybe if someone with real hardware caught it and made a fork

I installed espeak with homebrew

it makes a symlink at /usr/local/bin/espeak to /usr/local/Cellar/espeak/1.48.04_1/bin/espeak

If i drag the symlink to ReSpeak it works

thanks for info.

On mac, I cannot select espeak in this or any other folder, it is greyed out.

1 Like

ok, letā€™s see.

renoise.tool():add_menu_entry{
  name = "Sample Editor: ReSpeak TTS",
  invoke = function()
    prepare_for_start()
  end
}

renoise.tool():add_keybinding{
  name="Global:Tools: ReSpeak TTS",
  invoke=function()
    prepare_for_start()
  end

both of these have a space before ā€œReSpeakā€

can that be fixed, @martblek

also, could you add it to Tools->MartBlek too?
since you have AlmostDrumsNG there already :slight_smile:

re @renoize-user , i went to the terminal, after installing espeak via homebrew, and did a which espeak
and then got this

$ which espeak
/opt/homebrew/bin/espeak
$ cd /opt/homebrew/bin/
$ open .

and a finder window opened which showed all the stuff in that folder. i, then, while in the Options tab in the tool, picked ā€œBrowseā€ (or whatever it was), and dragged the espeak file to the macOS Finder, and selected ā€œOpenā€, and got this result:

so thatā€™s how it worked for meā€¦

1 Like

@martblek
hi i did three modifications:

  1. added it to Menu Entry for Martblek
  2. added keyhandler that bleeds keypresses from dialog to tracker - so you can keyjazz during dialog open.
  3. added focus that bleeds keypresses from dialog to tracker, so you can keyjazz right after clicking on generate (without losing keyfocus /keyjazz)

cz.martblek.ReSpeak_V0.03.xrnx (5.0 KB)

issues: when i change the speaker (not the language), nothing seems to happen to the sample i render.

1 Like

Espeak is still greyed out, so i cannot open it with the tool. Any ideas?

Hello,
I have abandoned this project and will not be returning to it anytime soon.
I didnā€™t enjoy researching how to break it down under all the platforms.
Not every platform has the same version of Espeak-NG available.
So since then I avoid using external programs in binary form in my tools.

OK i will try to see if it can be made to work because everytime i open the dialog, it needs me to put in the settings again. Thankfully i loaded it.

@renoize-user ill see if this is just an easy case

1 Like

i can sympathize. itā€™s not easy to do these ā€œhave some script that accesses a third party thingā€ scripts, esp if they need to work everywhere and with everything. i could i guess modify this so that it boots up a terminal, and checks for homebrew, and installs espeakā€¦ but letā€™s first see if the espeak selection is a simplistic thing that can be easily fixed.

@renoize-user - iā€™ll give it a try now.
ok, it was trivial to change * to *.* - now it is possible to select the espeak and click Open. everytime.

i also made it so that if you generate a wavefile, it renders it and shows the sample editor, so you definitely see that something happened.

now iā€™m very interested in why the different dialects do not work. iā€™ll have a look.
and why is it 22khz instead of 44khz

cz.martblek.ReSpeak_V0.03.xrnx (5.0 KB)

  • allows for selecting any file as espeak
  • switches to sample editor to show rendered sample
3 Likes

Thanks for putting your time into it and fixing it.
Works perfectly now! :slight_smile:

1 Like

This tool was primarily developed in linux and the language and voice selection menus were based on it.
If I remember correctly, not much worked in Windows :frowning: a lot of things were missing.
I have never tried the macos version.

@martblek @esaruoho I am a Linux user, This is very useful. Thanks for making it and improving it.

2 Likes

iā€™m changing the default language from 1 (afrikaans) to 25 (english scottish).

ok, @martblek gave me permission to hijack this and make it cross-platform etc.
iā€™m currently working on it.

2 Likes

hereā€™s what it looks like

Feature: Paketti eSpeak Text-to-Speech, tested with macOS & Linux.
This supports both espeak and espeak-ng
it is an improvement over Martblekā€™s abandoned ReSpeak. (Martblek gave permission to take his work and improve upon it)

Supports:

  • Loading textfiles and rendering
  • Selection from text can be rendered
  • Same shortcut that opens the dialog, renders the sample
  • eSpeak path is stored in Preferences
  • Settings stored in Preferences
  • Sample Editor is brought up after rendering, so you can see what happened
  • Can select whether new instrument is rendered or sample.
  • User setting: every voice/language change will render a new sample / new instrument. (dropdownmenu & +/- changes for quickly changing the voice / language) ā†’ means when you hit +/- itā€™ll render a new instrument every time.
  • Languages sorted alphabetically

hit me up via DM if you want a VIP WIP build of Paketti with this included.

7 Likes

Useful. I would like to see the ability to run one line at a time, separating the text with a line break and specifying a range for each line!
For a text with 10 lines, specifying 3-8 lines would generate 6 samples.

1 Like