Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. text to speech problem

text to speech problem

Scheduled Pinned Locked Moved C#
questionhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maryamtooty
    wrote on last edited by
    #1

    I use Speech component and when speaker is reading, the other commands not work, how can i enable pause and stop during speaking? thanks everybody for the answers

    A 1 Reply Last reply
    0
    • M maryamtooty

      I use Speech component and when speaker is reading, the other commands not work, how can i enable pause and stop during speaking? thanks everybody for the answers

      A Offline
      A Offline
      Anshul R
      wrote on last edited by
      #2

      Use the Speak command in a background worker so that nothing else is defunct till the speech is over.

      M 1 Reply Last reply
      0
      • A Anshul R

        Use the Speak command in a background worker so that nothing else is defunct till the speech is over.

        M Offline
        M Offline
        maryamtooty
        wrote on last edited by
        #3

        so what shall i do? use threads? at micro programing it was so easy, just check a flag or bit for an event each certain time. but i can not found any thing in c#!

        A 1 Reply Last reply
        0
        • M maryamtooty

          so what shall i do? use threads? at micro programing it was so easy, just check a flag or bit for an event each certain time. but i can not found any thing in c#!

          A Offline
          A Offline
          Anshul R
          wrote on last edited by
          #4

          BackgroundWorker Component Do you know about them? What u hav 2 do is Write the code to be executed in their DoWork event. Then the play button should have code like BackgroundWorker1.RunWorkerAsync() Read about BackgroundWorker. That is a simple and effective solution

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups