Results 1 to 10 of 28

Thread: SAPI in Ubuntu using Gnone Speech Dispatcher

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    UK
    Beans
    75
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Lightbulb SAPI in Ubuntu using Gnone Speech Dispatcher

    Hi Everyone,


    I have been considering a project for sometime now and have finallly freed enough time to begin working on it. It is really a quick hack to get the MS SAPI speech engines to work under Linux not just Ubuntu.

    I have SAPI running under WINE *Note that Hardy breaks the install process of the MS SAPI 5.1 SDK. I have hacked that around a bit and got it working again but by default it does not work. I have submitted a bug report to the WINE team.

    I also have VWKate SAPI 5 from NeoSpeech installed. This has been tested using the TextAloud package and also the MS examples under WINE.

    From there I am in the process of writing an executable in windows that implements the basics of the SAPI engine and Gnone Speech Dispatcher interfaces.

    To increase the speed of development (in theory ) I have used tcl to script the SAPI to Speech Dispatcher middle ware. This is using a combination of TCOM for windows com objects into the SAPI engine. Speech Dispatcher uses standard in and out for communication.

    This will create a Server Client Model onto the SAPI engine that can allow for communications from Linux based programs and software to call the SAPI engine to speak.

    So I think it is possible to get this functioning and I am interested to know from people here:

    Firstly if people can get over the fact that i am using MS on Linux.

    Secondly if there is anyone with any suggestions, that wants to help out, that have a particular interested to see this working. Please drop ne a message or post on this thread.

    Tom

  2. #2
    Join Date
    Dec 2006
    Beans
    6
    Distro
    Ubuntu 6.10 Edgy

    Re: SAPI in Ubuntu using Gnone Speech Dispatcher

    Yes! I will worship the ground you walk on if i can use SAPI5 voices in linux. I haven't yet figured out how to do this...i tried installing textaloud in wine but it can't see the sapi5 voices i have, so i'm stuck.

    i was considering running windows in vmware to try to make this work because i desperately need it right now.

  3. #3
    Join Date
    Oct 2008
    Location
    UK
    Beans
    75
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Talking Re: SAPI in Ubuntu using Gnone Speech Dispatcher

    Proof of concept it works! Hopefully we will see SAPI on Ubuntu soon.

    I now have an executable that speaks using SAPI using wine and the basic Microsoft default speech engine. I have also installed an additional speech engine from NeoSpeech VWKate and once selected it will use any installed speech engine.

    Main Tasks:
    1. Speech Dispatcher SAPI driver
    2. SAPI Installation & Config
    3. Middleware
    4. Package

    ToDo Breakdown:
    1. Create stdin file event handeler - Not Started
    2. Create dispatch code for stdout - Not Started
    3. Rate, volume, voice, sound device - In Progress
    4. Event reporting - Researchig
    5. Read SPI specification - Researching
    6. Create aware network enabled option - In Progress
    7. Intergrate tcom into standalone executable - Done
    7a. Create install for C++ library to /system32 - Not Started
    8. Install SAPI on Ubuntu - Broken but Jimmied - In Progress
    8a. Create standalone installation package - Not Started
    8b. Identify and generate filelist - In Progress
    8c. Identify SAPI registry entries & Reproduce - In Progress
    9. Test SAPI 4/5 Install Packages - 4 Tested
    - Default MS Engine SDK5.1 - Working
    - VWKate Neospeech - Working

    Any help still welcomed, especially testers

    Tom

  4. #4
    Join Date
    Oct 2008
    Beans
    9

    Re: SAPI in Ubuntu using Gnone Speech Dispatcher

    WOW.
    W O W
    Tom, You're a legend! This is incredible! Amazing!

    I'm just looking at doing exactly the same thing, Was getting desperate. Then I see your post!

    I'm pushing to get a wholly FOSS speech engine+GUI.

    I blogged the start:

    http://womblezone.blogspot.com/

    <exerpt>
    The plan

    1. Use WINE to get Vista's Speech Engine operating in Linux
    2. Create a GUI that'll interface with this engine.
    The GUI will sporadically (unless the user disables the feature) send phrase-data to a central database (say VoxForge - I have contacted the maintainer and he is friendly)
    3. Once we have enough data, throw out the WINE-wrapped Vista Engine, and replace it with our own FOSS engine.

    Please have a look and tell me what you think!

    hmm SAPI 5.1 doesn't have a UK english voicemodel. This is why I was trying to port the Vista one, but it's possibly horribly embedded. Anyway, I'm well up for learning American, in order to write my emails.

    I hope we can meet up on the internet (I'm in India now) and chat! How about irc.freenode.net#cmusphinx?

    Let's do it! Let's get a SAPI engine in Linux, and seed a FOSS GUI that kicks Vista Speech Assistant's bony butt!

    Sam

  5. #5
    Join Date
    Oct 2008
    Beans
    9

    Re: SAPI in Ubuntu using Gnone Speech Dispatcher

    Quick update,

    I'm now running Vista + Visual Studio in VirtualBox

    I'm using the SimpleDictation sample from the Windows SDK

    ...compiling a release build and trying to port this to Wine. It's the simplest possible way to test that SAPI 5.3 has transferred over ok.

    I think there's a good chance of this working... I'll post another update in a few days.

    Sam

  6. #6
    Join Date
    Oct 2008
    Location
    UK
    Beans
    75
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: SAPI in Ubuntu using Gnone Speech Dispatcher

    Hi Sam,


    The initial work that i have done was proof of concept and it works under SAPI 5.1 but with quite a large amount of complex sticky tape work. The current version of Wine does not play niceley with the SAPI installer.

    Microsoft have been a little bit sneaky. They have included the SAPI 5.3 SDK files within the Vista SDK package. To work with the Vista SDK you will need to identify and extract the required files and make your own install package for Wine. Similar to the process that i will be using. I see the work that you are doing as the next natural step and would welcome you to make a start.

    I am using some less popular technologies and would not expect you to use them but they do provide the basis for a working model and test environment.

    I have not looked at the legality of using either SAPI 5.1 or 5.3 might cause when used in this way.

    Oh well if it is popular then it will catch on.

    Hope to catch up soon.

    Tom

Tags for this Thread

Bookmarks

Posting Permissions

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