joethei / obsidian-tts

Text to speech for Obsidian. Hear your notes.
GNU General Public License v3.0
71 stars 10 forks source link

Adding support for Linux users to add voices, #9

Open soad666p opened 2 years ago

soad666p commented 2 years ago

I think a good improvement would be adding the support to define where the voice folder is located,

the plugin out of the box does not seem to work with Linux, I'm seeing no default voices, image

joethei commented 2 years ago

This is not how the underlying Web Speech API works.

You will have to have speech-dispatcher and a text to speech engine like espeak installed on your system to have voices show up. After installing, you will need to configure speech-dispatcher with spd-config -u and maybe reboot.

You might also have to add the --enable-speech-dispatcher flag when launching Obsidian.

I have tested that this works on Linux(and have heard reports from users to), but I am not a Linux user, so I cannot help with any distribution specific troubleshooting.

soad666p commented 2 years ago

Let me test this, and I will let you know my finding

quartzar commented 1 year ago

@soad666p did that work for you?

egoebelbecker commented 1 year ago

I tried this. It didn't work. Still no option to choose a voice.

soad666p commented 1 year ago

@soad666p did that work for you?

dont didnt work

acook commented 6 months ago

Following those instructions does work for me.

Snapshot_2024-01-03_04-21-09

However if anyone figures out why espeak-ng works but mimic3 voices don't work in Obsidian when they work just fine from the commandline I would appreciate the tip.

EDIT: I got it working with piper!