Results 1 to 21 of 21

Thread: "ReadText" speech plugin

  1. #1
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default "ReadText" speech plugin

    This will allow you access to 3 new procedures/functions:
    ReadOut(text: string);
    ReadOutEx(text, reader: string; rate, vol: Integer);
    ReturnVoices: TStringArray;

    ReadOut will read out "text" in the default voice.
    ReadOutEx will read out "text" with voice "reader" at rate "rate" with a volume of "vol". You do not have to specify "reader" and can just put '' to use default. Normal "rate" is 0 and normal "vol" is 100.
    ReturnVoices will return a TStringArray with the names of all the voices available to you. You can then write them out and use the exact text for a reader in ReadOutEx.

    This will only work on Windows XP - Wine users will fail as they won't have the Microsoft Speech SDK and Vista users will fail as they have a newer version of Microsoft Speech SDK, but you should be able to get it working if you want when I release the sauce.

    This will become Open Sauce when enough people become interested to make me more loved, so get as many people as you can interested.

    Lastly, Microsoft Mary is really hot when you get her talking dirty.

    Edit:
    SCAR Code:
    program VoiceIntro;
    var
      a: TStringArray;
      i: Integer;
    begin
      a:= ReturnVoices;
      for i := 0 to High(a) do
      begin
        Writeln(a[i]);
        ReadOutEx('Hello world', a[i], 0, 100);
      end;
    end.
    That's a good intro script to your available voices
    Edit2: Added sauce file - if you're wondering about the size difference, it requires a very heavy included file Activex that it has to compile into the dll with the sauce. If the sauce fails compiling due to one of the uses not existing, you don't have the SAPI it uses - compiled mine with SAPI 5.1, but should work with SAPI 5.2.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  2. #2
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    I love you, mixster! Sauce now plz.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  3. #3
    Join Date
    Nov 2006
    Location
    'Pergamino, BA, Argentina';
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    This is great, just think of your pc shouting to your mom 'Hey, we have just advanced a Strength lvl, bitch'
    Good job.
    Sauce pl0xzor, I wanna see if i can make it run on Vista.

  4. #4
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *tears* i was there when it was born.... so lovely. sam hates me tho. mary is my secret lover

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    You should also make into an .exe so you can put it on, let's say, your Pocket PC, and listen to Microsoft Mary talk dirty, even when you are AFK

    Good work Mixster, s0urce pl0x?

    E: I do not have Microsoft Mary installed on my PC or something..? Where can I get her?
    Successfully compiled (62 ms)
    Microsoft Sam
    Successfully executed


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  6. #6
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    I thought "Sauce" was a typo

    That way, it would've been funnier.
    But the thing you're doing here is mean.

    Saying that you'll give out the sauce once people love you enough.
    You already know that people love you, don't you?

    Anyway, I'm testing this in 37 seconds..

    Testing done.
    THIS BE FUN! Seriously, now I want to see the source more than everr.

    SCAR Code:
    begin
      repeat
        ReadOut('Lulz, dis be fun.');
      until false;
    end.

    Run et.


    Edit:
    SCAR Code:
    begin
      repeat
        ReadOut('So one day, Mary got up and started to choke on the lamb.');
      until false;
    end.

    Edit2: HAHAHHA HARRY, THAT MADE ME LAUGH.
    He sounds like he is drowning..

    SCAR Code:
    begin
      repeat
        ReadOut('CAN MIXSTER PLEASE RELEASE THE WRATH OF THE SAUCE');
      until false;
    end.

  7. #7
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    EvilChicken!: this is funner

    SCAR Code:
    begin
      repeat
        ReadOut('LLLLOOOOOOOOOOOOOOOOOLLLLLLLLLL');
      until false;
    end.
    EEEEEEELLLLLEEELLLLLLLOOOOOHHOHOOOOOOEEELLLLLLLLL

    E: Sooooooooy.
    And how do I get M$ Mary?


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  8. #8
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program Roflcopter;
    begin
      repeat
        ReadOutEx('Soy', 'Microsoft Sam', -5, 100);
      until false;
    end;

    Try that one
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  9. #9
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    source pl0x

    I tried making one of these few months ago, but ofcourse I failed
    Good job.
    I made a new script, check it out!.

  10. #10
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shady? View Post
    This is great, just think of your pc shouting to your mom 'Hey, we have just advanced a Strength lvl, bitch'
    Good job.
    Sauce pl0xzor, I wanna see if i can make it run on Vista.
    ROFL
    haha lol

    but yeah this is awesome ^^

  11. #11
    Join Date
    May 2008
    Posts
    203
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    'My roflcopter goes soi soi soi soi soi soi soi'

    Love that robotic voice. Soi doesn't work on vista voice though

    This would be useful for those nearby their autoing computers. You could have it say 'Procedure Error' or 'Random Error' when necessary to get a scripter's attention! YEH!

  12. #12
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    source pl0x

    I tried making one of these few months ago, but ofcourse I failed
    Good job.
    ReadOut() is only 5 lines of code - extra credit to Wizzup? though for putting me onto the right track after someone threw me so far off course that it nearly stopped the entire thing with a suggestion to look into narrhook.dll, which didn't help at all

    Anyway, I think I've been whoring enough love from this and will post up the source when I finish playing on my pc (posting from laptop atm)
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  13. #13
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Yay, source

    And I still do not know how to get Microsoft Mary


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  14. #14
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Not 100%, but updating your .Net framework SDK should add it in.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  15. #15
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hahhahah!!!!! Try Thiss!!!!


    SCAR Code:
    Begin
      Wait(3000);
    ReadOut('I can ride my bike with no handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);

    ReadOut('I can ride my bike with no handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);

    ReadOut('Look at me, look at me');
    Wait(10);
    ReadOut('hands in the air like it''s good to be');
    Wait(10);
    ReadOut('ALIVE');
    Wait(10);
    ReadOut('and I''m a famous rapper');
    Wait(10);
    ReadOut('even when the paths''re all crookedy');
    Wait(10);
    ReadOut('I can show you how to do-si-do');
    Wait(10);
    ReadOut('I can show you how to scratch a record');
    Wait(10);
    ReadOut('I can take apart the remote control');
    Wait(10);
    ReadOut('And I can almost put it back together');
    Wait(10);
    ReadOut('I can tie a knot in a cherry stem');
    Wait(10);
    ReadOut('I can tell you about Leif Ericson');
    Wait(10);
    ReadOut('I know all the words to "De Colores"');
    Wait(10);
    ReadOut('And "I''m Proud to be an American"');
    Wait(10);
    ReadOut('Me and my friend saw a platypus');
    Wait(10);
    ReadOut('Me and my friend made a comic book');
    Wait(10);
    ReadOut('And guess how long it took');
    Wait(10);
    ReadOut('I can do anything that I want cuz, look:');
    Wait(10);

    ReadOut('I can keep rhythm with no metronome');
    Wait(10);
    ReadOut('No metronome');
    Wait(10);
    ReadOut('No metronome');
    Wait(10);

    ReadOut('I can see your face on the telephone');
    Wait(10);
    ReadOut('On the telephone');
    Wait(10);
    ReadOut('On the telephone');
    Wait(10);

    ReadOut('Look at me');
    Wait(10);
    ReadOut('Look at me');
    Wait(10);
    ReadOut('Just called to say that it''s good to be');
    Wait(10);
    ReadOut('ALIVE');
    Wait(10);
    ReadOut('In such a small world');
    Wait(10);
    ReadOut('All curled up with a book to read');
    Wait(10);
    ReadOut('I can make money open up a thrift store');
    Wait(10);
    ReadOut('I can make a living off a magazine');
    Wait(10);
    ReadOut('I can design an engine sixty four');
    Wait(10);
    ReadOut('Miles to a gallon of gasoline');
    Wait(10);
    ReadOut('I can make new antibiotics');
    Wait(10);
    ReadOut('I can make computers survive aquatic conditions');
    Wait(10);
    ReadOut('I know how to run a business');
    Wait(10);
    ReadOut('And I can make you wanna buy a product');
    Wait(10);
    ReadOut('Movers shakers and producers');
    Wait(10);
    ReadOut('Me and my friends understand the future');
    Wait(10);
    ReadOut('I see the strings that control the systems');
    Wait(10);
    ReadOut('I can do anything with no assistance');
    Wait(10);
    ReadOut('I can lead a nation with a microphone');
    Wait(10);
    ReadOut('With a microphone');
    Wait(10);
    ReadOut('With a microphone');
    Wait(10);
    ReadOut('I can split the atoms of a molecule');
    Wait(10);
    ReadOut('Of a molecule');
    Wait(10);
    ReadOut('Of a molecule');
    Wait(10);

    ReadOut('Look at me');
    Wait(10);
    ReadOut('Look at me');
    Wait(10);
    ReadOut('Driving and I won''t stop');
    Wait(10);
    ReadOut('And it feels so good to be');
    Wait(10);
    ReadOut('Alive and on top');
    Wait(10);
    ReadOut('My reach is global');
    Wait(10);
    ReadOut('My tower secure');
    Wait(10);
    ReadOut('My cause is noble');
    Wait(10);
    ReadOut('My power is pure');
    Wait(10);
    ReadOut('I can hand out a million vaccinations');
    Wait(10);
    ReadOut('Or let''em all die in exasperation');
    Wait(10);
    ReadOut('Have''em all healed of their lacerations');
    Wait(10);
    ReadOut('Have''em all killed by assassination');
    Wait(10);
    ReadOut('I can make anybody go to prison');
    Wait(10);
    ReadOut('Just because I don''t like''em and');
    Wait(10);
    ReadOut('I can do anything with no permission');
    Wait(10);
    ReadOut('I have it all under my command');
    Wait(10);
    ReadOut('I can guide a missile by satellite');
    Wait(10);
    ReadOut('By satellite');
    Wait(10);
    ReadOut('By satellite');
    Wait(10);
    ReadOut('and I can hit a target through a telescope');
    Wait(10);
    ReadOut('Through a telescope');
    Wait(10);
    ReadOut('Through a telescope');
    Wait(10);
    ReadOut('and I can end the planet in a holocaust');
    Wait(10);
    ReadOut('In a holocaust');
    Wait(10);
    ReadOut('In a holocaust');
    Wait(10);
    ReadOut('In a holocaust');
    Wait(10);
    ReadOut('In a holocaust');
    Wait(10);
    ReadOut('In a holocaust');
    Wait(10);

    ReadOut('I can ride my bike with no handlebars');
    Wait(10);
    ReadOut('No handle bars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);

    ReadOut('I can ride my bike with no handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);
    ReadOut('No handlebars');
    Wait(10);
    End.

  16. #16
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha damn good..would it be possible to get better voice, or attach with another "text to speak" program..cause MS default voices are bit crappy tbh
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  17. #17
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hy71194 View Post
    Yay, source

    And I still do not know how to get Microsoft Mary
    Microsoft Mary & Microsoft Mike
    Microsoft Mike and Mary TTS Engines
    Installs these additional SAPI 5 voices onto your computer. For Windows XP only.


    @ Mixster

    Verry nice!!
    I'm gonna use this lol, this should be added to SRL.

    So when your autoing and your AFK, if you get attacked by a random, then the voice will say 'FUCK! A random is pwnin us, running away!' or something similar

    Good work mixster
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  18. #18
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    @Negaal: I plan on looking into voice packages and more specifically other TTS programs to see if they have API support or have their TTS in a dll so I can call it from there.
    @Turbobk: As it's currently only XP, I doubt it would get included, but I would like it to start being used, because it makes sense to have it stay stuff when there's an error, especially with Smart being so popular leading to people autoing while they're on.

    I may start working towards to speech recognition with this as well, but it depends on whether or not I can get a mic, otherwise I'll have to hook my audio out into mic and hope it can understand gangster rap or heavy metal.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  19. #19
    Join Date
    Aug 2007
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just got to say how much I like this. I've just installed Kate's voice and this is so brilliant. I'm off to add this to my scripts.

    Thanks.

  20. #20
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i was going to do something like this but without the use of a plugin. Which therefore would have been much much less cool, cuz it wouldnt sound like actual speeking.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  21. #21
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I only used the plugin because you have to use classes and not too sure how to import them into Scar (if even possible), so I decided to just take the easy route and do it through the plugin. My lack of knowledge on importing classes also is what is stopping voice recognition
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2008, 12:48 PM
  2. action="www.site.com" method="post"
    By Jason2gs in forum General
    Replies: 4
    Last Post: 05-17-2007, 11:50 PM
  3. Replies: 3
    Last Post: 04-19-2007, 03:44 AM
  4. Replies: 5
    Last Post: 10-26-2006, 11:30 PM

Posting Permissions

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