Jump to content

Search the Community

Showing results for tags 'sapi.spvoice'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Found 1 result

  1. HotKeySet('^t', '_Translate') $oSp = ObjCreate("SAPI.SpVoice") While 1 Sleep(200) WEnd Func _Translate() $oldClip = ClipGet(); get the data that is currently in the clipboard Send('^c'); copy the selected text to the clipboard $phrase = ClipGet(); get the data from the clipboard (which is now the selected word) ClipPut($oldClip); put the old data back in the clipboard ToolTip($phrase, 0, 0) ; now phrase is the word or phrase you want to translate $oSp.Speak($phrase) EndFuncI started to use SAPI.VOICE. My code mean, when i select anytext in anyApplication and press Ctrl+T he will speak my selected text. My problem is: when i selected a long text and press Ctrl+T he speak a long sentencese, when he's speaking, i continue to select other text, and press Ctrl+T again, but he not stop the speaking sentence. He must finish the speaking sentence then speak my second sentence. I don't know how to stop the speaking sentence and start to speak my new sentence. Please help me, hope to see your godlike answer!
  • Create New...