+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    21
    Character
    Lavish
    Guild
    Equestrian Prep
    Server
    Unrest

    Default NAudio DirectSound / SAPI or MSSpeech TTS

    Short version:
    Gives more sound/speech options and less delay on Text-to-Speech.

    Long version:
    I've created a plugin that uses NAudio.Wave.DirectSoundOut (DirectSound wrapper) for sound output, and Text-to-Speech output from System.Speech or Microsoft.Speech (does not use a file intermediary).

    I've not tested it well yet, and it may require Microsoft.Speech be installed (though I hope not).

    It has options for DirectSound output device and TTS API/voice.
    It supports multiple configurations via the usual ACT.exe/.xml copying.

    The .dll is merged with NAudio.dll, so you shouldn't need anything extra.

    Download:
    Can't attach new version without creating another post, so just get the binary off my site:
    Download NuSound-Binary-20130411.zip

    Source at http://github.com/zinx/NuSound/

    Install:
    Just unzip somewhere and add it in ACT.
    Optionally, install Microsoft Server Speech Platform v11 (below) and some TTS voices for it.

    Microsoft Server Speech Platform v11:
    Runtime
    Languages (Voices/etc)

    Changes:
    • 2013-04-11
      Stability fix.
    • 2013-04-10
      Stability fix.
    • 2013-04-09
      Added option for voice speed.
      Fixed some threading issues with BindingSource.
    Last edited by Mzia; 04-11-2013 at 01:54 PM.

  2. #2
    ACT Developer
    EQAditu's Avatar
    Join Date
    Jun 2007
    Posts
    3,105
    Character
    Aditu
    Guild
    Nihilist Dynasty
    Server
    Skyfire

    Default Re: NAudio DirectSound / SAPI or MSSpeech TTS

    I might as well respond to your tweet here...
    Quote Originally Posted by @zinxv
    @EQAditu Any chance I could get a TTS hook like the PlaySound one?
    I'm surprised that you didn't ask this to begin with, instead of diving into disassembly and reflection. It's not hard at all for me to do this, though I might have been lazy at releasing a version with it, so your path may have been quicker.

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    21
    Character
    Lavish
    Guild
    Equestrian Prep
    Server
    Unrest

    Default Re: NAudio DirectSound / SAPI or MSSpeech TTS

    Quote Originally Posted by EQAditu View Post
    I might as well respond to your tweet here...

    I'm surprised that you didn't ask this to begin with, instead of diving into disassembly and reflection. It's not hard at all for me to do this, though I might have been lazy at releasing a version with it, so your path may have been quicker.
    It was surprisingly simple

    Also, I wanted to have some idea of the practical improvement I saw before I committed to having a plugin available. It ended up being more improvement than I thought, so here it is (initially I just wanted to use MSP voices, and was using the SlimDX_XAudio2.dll plugin)

  4. #4
    Junior Member
    Join Date
    Jan 2011
    Posts
    23
    Character
    Monk
    Guild
    Server
    Guk

    Default Re: NAudio DirectSound / SAPI or MSSpeech TTS

    Using Windows 7 I tried 1st. placing the NuSound.dll in c:\programs/ACT folder then 2nd in the user/appdata/roaming/ACT folder. Then 3rd tried with the user/appdata/roaming/ACT/plugin folder but I keep getting an Access is deinied (Exception from HRESULT: 0x80070005 E_Accessdenid).
    I installed both SpeechPlatformRuntime and MSSpeech_SR_en-AU_TELE. Still nogo. The SlimDX_XAudio2.dll works fine. I have this dll in the Users/appdata/roaming/ACT main folder.

    Any idea how to get yours to work?

    Thanks
    Ahila
    Last edited by Ahila; 05-12-2013 at 04:37 PM.

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    21
    Character
    Lavish
    Guild
    Equestrian Prep
    Server
    Unrest

    Default Re: NAudio DirectSound / SAPI or MSSpeech TTS

    Quote Originally Posted by Ahila View Post
    Using Windows 7 I tried 1st. placing the NuSound.dll in c:\programs/ACT folder then 2nd in the user/appdata/roaming/ACT folder. Then 3rd tried with the user/appdata/roaming/ACT/plugin folder but I keep getting an Access is deinied (Exception from HRESULT: 0x80070005 E_Accessdenid). I installed both SpeechPlatformRuntime and MSSpeech_SR_en-AU_TELE. Still nogo. The SlimDX_XAudio2.dll works fine. I have this dll in the Users/appdata/roaming/ACT main folder. Any idea how to get yours to work? Thanks Ahila
    Not sure, I use Windows 7 with UAC enabled and I get no access denied - maybe try checking its properties and making sure it doesn't have the untrusted source checkbox clicked? For what it's worth, it shouldn't even need MS Speech, though it does provide better voices with it (IMHO).

    On a different note, I've been busy with real life, and the guild I was in dissolved, and I'm not really interested in joining another at the moment, so development on this has stopped for now. If anyone wants to take over the development, drop me a line, or just fork the github project @ http://github.com/zinx/NuSound

    I wanted to add a dictionary / lexicon, and various other options, but it doesn't look like I'll be getting back to this project any time soon

    If you just want to use it, barring strange Acess Denied messages, the latest version doesn't crash, the only real issue I have is it can let too many voices overlap sometimes, but I see this as more of a feature

    If anyone can figure out the Acess Denied issue, please post here to help others.
    Last edited by Mzia; 07-25-2013 at 04:43 PM.

  6. #6
    Junior Member
    Join Date
    Jul 2011
    Posts
    21
    Character
    Lavish
    Guild
    Equestrian Prep
    Server
    Unrest

    Default Re: NAudio DirectSound / SAPI or MSSpeech TTS

    Necro-threading for update. Had a need for ACT again, so I finally got around to using the new PlayTtsDelegate. The plugin works (at least, for me) again.

    http://www.zenthought.org/misc/tmp/N...y-20161126.zip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Sponsor Ads