Saturday, April 27, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 4329  / 1 Year ago, tue, january 24, 2023, 8:11:18

In Windows I can do these steps:



1. Open Notepad
2. Copy and Paste

CreateObject("SAPI.SpVoice").Speak"Hello."

3. Save it as xyz.vbs
4. Run it/Open it


It will then speak "Hello". Is there something like this in Ubuntu?


More From » text-to-speech

 Answers
2

Install the espeak Install espeak package. Then run in a terminal



espeak -v en "Hello"





To change the voice, please refer to the manpage. An excerpt from man espeak:



   --voices[=<language code>]
Lists the available voices. If =<language code> is present then only
those voices which are suitable for that language are listed.

-v <voice name>
Use voice file of this name from espeak-data/voices

[#27062] Wednesday, January 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uxuriousrnal

Total Points: 279
Total Questions: 106
Total Answers: 96

Location: Fiji
Member since Wed, Mar 29, 2023
1 Year ago
uxuriousrnal questions
Wed, Mar 9, 22, 09:04, 2 Years ago
Mon, Jul 18, 22, 01:48, 2 Years ago
Wed, Apr 13, 22, 01:15, 2 Years ago
Thu, Aug 26, 21, 22:01, 3 Years ago
;