Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6737247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:13:36+00:00 2026-05-26T11:13:36+00:00

Can someone please teach me how to create C# code that would allow my

  • 0

Can someone please teach me how to create C# code that would allow my computer to speak english words that would be base on text provided by the system

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:13:36+00:00Added an answer on May 26, 2026 at 11:13 am

    you can try to use this code of mine.

    public static class Melodie
    {
        private static SpeechLib.SpVoice WomenAgent = new SpeechLib.SpVoice();
    
        public static void AnnounceRestrictionOfAccount()
        {
            WomenAgent.Speak("You're account has been block by the system security", SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault);
        }
    
        public static void SayGoodBye()
        {
            WomenAgent.Speak("Goodbye!");
        }
    
        public static void WelcomeUser(User userToBeWelcomed)
        {
            string Salutation = ConstructWelcomeSpeech(userToBeWelcomed);
            WomenAgent.Speak(Salutation);
        }
    
        private static string ConstructWelcomeSpeech(User user)
        {
            string salutation = "Welcome ";
            if (user.Gender == "Male")
            {
                salutation += " Mr. ";
            }
            else if (user.Gender == "Female")
            {
                if (user.CivilStatus != null)
                {
                    if (user.CivilStatus == "Single")
                        salutation += " Ms. ";
                    else
                        salutation += " Mrs. ";
                }
            }
            salutation += user.FirstName + " " + user.LastName;
            return salutation;
        }
    
        public static void AnnounceMessage(string message)
        {
            WomenAgent.Speak(message);
        }
    }
    

    and you can read more about SpeechLib in MSDN.

    another thing you should also include Microsoft speech lib 5.0 as a reference in you’re project. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please post a simple code that would convert, System::String^ To, C++ std::string
Can someone please spend me some line of codes, that add a text at
Can someone please point me to articles or books that discusses different programming paradigm
Can someone please derive a concrete example from the following: http://www.urdalen.com/blog/?p=210 ..that shows how
Can someone please confirm to me that when my application is written in .NET
Can someone please explain why this code is not outputting a value for $consultant
Can someone please tell me where I'm going wrong with this piece of code?
can someone please edit %:s/\([0-9]*\)_\(*\)/\2 so that i can rename files. for example, if
Can someone please check what I've done, since I'm not that good at PHP
Can someone please explain how to read the below code to find last column

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.