Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 02-05-2023, 07:54 AM   #1
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Problem with TTS voices in Viewer v6.12

@kovid,

Quote:
E-book viewer: Read aloud: On Windows switch to using the new Microsoft speech subsystem with access to more voices
Unfortunately this v6.12 update to Viewer Read aloud means I now have access to fewer voices, not more. I can no longer access any of my 3rd-party purchased IVONA voices. This is very disappointing. Is there anything I can do? I'm using Windows 11 Home in case that's relevant.

In v6.11 all installed 64bit voices, from both MS (incl. Cortana) and IVONA, could be made to work OK in both Viewer Read aloud and in my user plugin TTS to MP3. In fact the list of available voices was identical in both.

In v6.12 only the MS voices appear in Read aloud. Thankfully IVONA and MS Cortana voices *are* still available to my TTS to MP3 plugin.
Looking at viewer-webengine.json
Code:
  "tts_sapi": {
    "voice": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\IVONA OEM NextUp OpenSAPI amy22"
  },
  "tts_winspeech": {
    "voice": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech_OneCore\\Voices\\Tokens\\MSTTS_V110_enGB_GeorgeM"
  },
it appears that a different Win registry key is now used for Read aloud. Is there any possibility of making installed voices from both old and new keys available to Read aloud?
jackie_w is offline   Reply With Quote
Old 02-05-2023, 09:36 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's now using the winrt winspeech subsystem which Microsoft says is what should be used in modern apps. SAPI is deprecated. I have no idea how to get that subsystem to read more voices. Note that you can continue to use SAPI in calibre by setting a "plugin tweak" in Preferences->Tweaks->Plugin tweak of

prefer_winsapi = True
kovidgoyal is offline   Reply With Quote
Advert
Old 02-05-2023, 10:22 AM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by kovidgoyal View Post
It's now using the winrt winspeech subsystem which Microsoft says is what should be used in modern apps. SAPI is deprecated. I have no idea how to get that subsystem to read more voices. Note that you can continue to use SAPI in calibre by setting a "plugin tweak" in Preferences->Tweaks->Plugin tweak of

prefer_winsapi = True
Thank you. This tweak will suit me just fine for as long as SAPI still works. I don't think I've ever noticed that Tweaks page 'Plug-in tweaks' button before ... but I've only been using calibre for 14 years.

I wonder if this is MS's way of trying to force people into using a paid subscription charging TTS by wordcount sent to the cloud? Do you know whether there are any currently perceivable benefits of using the winrt winspeech subsystem?
jackie_w is offline   Reply With Quote
Old 02-05-2023, 04:12 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,678
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Note that you can continue to use SAPI in calibre by setting a "plugin tweak" in Preferences->Tweaks->Plugin tweak of

prefer_winsapi = True
Brilliant!! Great foresight

Curious - but why a plugin tweak and not a regular tweak?

BR
BetterRed is offline   Reply With Quote
Old 02-05-2023, 10:27 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by jackie_w View Post
Thank you. This tweak will suit me just fine for as long as SAPI still works. I don't think I've ever noticed that Tweaks page 'Plug-in tweaks' button before ... but I've only been using calibre for 14 years.

I wonder if this is MS's way of trying to force people into using a paid subscription charging TTS by wordcount sent to the cloud? Do you know whether there are any currently perceivable benefits of using the winrt winspeech subsystem?
I am not an audiophile to me there was no real difference in speech quality. There is access to more out of the box voices, for instance I now have access to Indian accented english voices which I didnt with SAPI. I have no idea what Microsoft's game plan is, which is why I left SAPI support in there.

The new API's save to wav function produces very crackly audio for me.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-05-2023, 10:28 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
Brilliant!! Great foresight

Curious - but why a plugin tweak and not a regular tweak?

BR
Thanks. I dont expect this option to be around forever, given the deprecation of the old API. but as long as it work I will leave it in.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-book specification supporting multiple voices for TTS richough3 General Discussions 7 07-16-2021 07:48 AM
Voices for TTS edmond Onyx Boox 1 10-28-2015 02:58 PM
Adding voices to TTS in M96 bruja_phoenix Onyx Boox 0 08-15-2014 03:34 AM
K3 Keyboard, TTS, 3.4, German voices adrian142 Amazon Kindle 1 10-19-2012 01:48 AM
TTS for K3 DXG- refuses to change voices jmesar Kindle Developer's Corner 2 04-06-2012 11:36 PM


All times are GMT -4. The time now is 08:28 AM.


MobileRead.com is a privately owned, operated and funded community.