Menu

SAPI voices and locale

Help
Nina
2014-01-24
2014-04-14
  • Nina

    Nina - 2014-01-24

    I've recently switched from Cloudgarden for accessing SAPI5 voices to JSAPI. One thing I'm missing (or maybe I'm just doing it wrong?) are the voice's locales, so far all the voices I get back from the system have null as a locale.
    This is how I'm retrieving the voice information:

    EngineManager.registerEngineListFactory(SapiEngineListFactory.class.getName());
    EngineList engines = EngineManager.availableEngines(new SapiSynthesizerMode());
    
    SapiSynthesizerMode modeDesc = (SapiSynthesizerMode) engines.elementAt(i);
    Voice[] voices = modeDesc.getVoices();
    

    So, am I doing something wrong or is this simply not implemented yet?
    Any help will be greatly appreciated :)

     
  • Dirk Schnelle-Walka

    Unfortunately, this is something not implemented, yet.

    Sorry,
    Dirk

     
  • Nina

    Nina - 2014-02-10

    Too bad, but not tragic, as it's just a matter of cosmetics in this case.

    Well, now I've encountered a real problem: I can't use some of the voices I have installed with this library.
    I get them displayed as available, can allocate them, but as soon as I'm calling synth.speak() some internal switch to the Windows default voice occurs and I'm getting my output spoken by Microsoft Anna's lovely robot voice.
    This happens with all the voices from Acapela, all the Nuance voices however work fine.

    Any suggestions on how to approach this problem? I've already tried debugging and at least the synthesizer handle handed over to the native methods is the exact same one that was obtained while initializing the synthesizers.

     
  • Nina

    Nina - 2014-04-14

    This problem still persists - any ideas how to solve this?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.