Click here to Skip to main content
15,886,422 members
Articles / Programming Languages / C#

My PC Can Speak and Understand 26 Languages. And Yours?

Rate me:
Please Sign up or sign in to vote.
4.60/5 (15 votes)
5 Jun 2011CPOL1 min read 66.3K   9.3K   84  
TTS and SR with Microsoft Server Speech Platform 10.2 for 26 languages
namespace SpeechSample
{
    partial class frmSpeechSample
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.lblTTSVoices = new System.Windows.Forms.Label();
            this.lblSelectedTTSVoice = new System.Windows.Forms.Label();
            this.lblNumInstalledTTSVoices = new System.Windows.Forms.Label();
            this.statusStrip1 = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.listViewTTSVoices = new System.Windows.Forms.ListView();
            this.label1 = new System.Windows.Forms.Label();
            this.btnTTSSpeech = new System.Windows.Forms.Button();
            this.txtTTS = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.listBoxRecognisedWords = new System.Windows.Forms.ListBox();
            this.label3 = new System.Windows.Forms.Label();
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.lblSR = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.panel1 = new System.Windows.Forms.Panel();
            this.listBoxWordsToBeRecognised = new System.Windows.Forms.ListBox();
            this.label4 = new System.Windows.Forms.Label();
            this.statusStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // lblTTSVoices
            // 
            this.lblTTSVoices.AutoSize = true;
            this.lblTTSVoices.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblTTSVoices.Location = new System.Drawing.Point(16, 14);
            this.lblTTSVoices.Name = "lblTTSVoices";
            this.lblTTSVoices.Size = new System.Drawing.Size(228, 13);
            this.lblTTSVoices.TabIndex = 1;
            this.lblTTSVoices.Text = "Installed Microsoft Server Speech TTS Voices:";
            // 
            // lblSelectedTTSVoice
            // 
            this.lblSelectedTTSVoice.AutoSize = true;
            this.lblSelectedTTSVoice.Location = new System.Drawing.Point(124, 151);
            this.lblSelectedTTSVoice.Name = "lblSelectedTTSVoice";
            this.lblSelectedTTSVoice.Size = new System.Drawing.Size(107, 13);
            this.lblSelectedTTSVoice.TabIndex = 3;
            this.lblSelectedTTSVoice.Text = "lblSelectedTTSVoice";
            // 
            // lblNumInstalledTTSVoices
            // 
            this.lblNumInstalledTTSVoices.AutoSize = true;
            this.lblNumInstalledTTSVoices.Location = new System.Drawing.Point(617, 15);
            this.lblNumInstalledTTSVoices.Name = "lblNumInstalledTTSVoices";
            this.lblNumInstalledTTSVoices.Size = new System.Drawing.Size(131, 13);
            this.lblNumInstalledTTSVoices.TabIndex = 7;
            this.lblNumInstalledTTSVoices.Text = "lblNumInstalledTTSVoices";
            // 
            // statusStrip1
            // 
            this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabel1});
            this.statusStrip1.Location = new System.Drawing.Point(0, 512);
            this.statusStrip1.Name = "statusStrip1";
            this.statusStrip1.Size = new System.Drawing.Size(766, 22);
            this.statusStrip1.TabIndex = 8;
            this.statusStrip1.Text = "statusStrip1";
            // 
            // toolStripStatusLabel1
            // 
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17);
            // 
            // listViewTTSVoices
            // 
            this.listViewTTSVoices.Location = new System.Drawing.Point(16, 31);
            this.listViewTTSVoices.Name = "listViewTTSVoices";
            this.listViewTTSVoices.Size = new System.Drawing.Size(732, 107);
            this.listViewTTSVoices.TabIndex = 10;
            this.toolTip1.SetToolTip(this.listViewTTSVoices, "Click on a TTS voice in order to select it.");
            this.listViewTTSVoices.UseCompatibleStateImageBehavior = false;
            this.listViewTTSVoices.SelectedIndexChanged += new System.EventHandler(this.listViewTTSVoices_SelectedIndexChanged);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location = new System.Drawing.Point(16, 190);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(573, 13);
            this.label1.TabIndex = 15;
            this.label1.Text = "Insert the text to speech in the following textbox and hit [Speak] to get the tex" +
                "t read in the language you selected above:";
            // 
            // btnTTSSpeech
            // 
            this.btnTTSSpeech.Enabled = false;
            this.btnTTSSpeech.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnTTSSpeech.Location = new System.Drawing.Point(631, 191);
            this.btnTTSSpeech.Name = "btnTTSSpeech";
            this.btnTTSSpeech.Size = new System.Drawing.Size(117, 36);
            this.btnTTSSpeech.TabIndex = 14;
            this.btnTTSSpeech.Text = "Speak";
            this.btnTTSSpeech.UseVisualStyleBackColor = true;
            this.btnTTSSpeech.Click += new System.EventHandler(this.btnTTSSpeech_Click);
            // 
            // txtTTS
            // 
            this.txtTTS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtTTS.Location = new System.Drawing.Point(18, 207);
            this.txtTTS.Name = "txtTTS";
            this.txtTTS.Size = new System.Drawing.Size(596, 20);
            this.txtTTS.TabIndex = 13;
            this.txtTTS.Text = "1, 2, 3, 4, 5";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.Location = new System.Drawing.Point(16, 151);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(106, 13);
            this.label2.TabIndex = 17;
            this.label2.Text = "Selected TTS Voice:";
            // 
            // listBoxRecognisedWords
            // 
            this.listBoxRecognisedWords.FormattingEnabled = true;
            this.listBoxRecognisedWords.Location = new System.Drawing.Point(16, 259);
            this.listBoxRecognisedWords.Name = "listBoxRecognisedWords";
            this.listBoxRecognisedWords.Size = new System.Drawing.Size(220, 238);
            this.listBoxRecognisedWords.TabIndex = 18;
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.Location = new System.Drawing.Point(16, 243);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(98, 13);
            this.label3.TabIndex = 19;
            this.label3.Text = "Recognised Words";
            // 
            // lblSR
            // 
            this.lblSR.AutoSize = true;
            this.lblSR.Location = new System.Drawing.Point(367, 331);
            this.lblSR.Name = "lblSR";
            this.lblSR.Size = new System.Drawing.Size(32, 13);
            this.lblSR.TabIndex = 20;
            this.lblSR.Text = "lblSR";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(310, 309);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(157, 13);
            this.label5.TabIndex = 21;
            this.label5.Text = "Speech Recognition for culture:";
            // 
            // panel1
            // 
            this.panel1.Location = new System.Drawing.Point(313, 355);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(149, 142);
            this.panel1.TabIndex = 22;
            // 
            // listBoxWordsToBeRecognised
            // 
            this.listBoxWordsToBeRecognised.FormattingEnabled = true;
            this.listBoxWordsToBeRecognised.Location = new System.Drawing.Point(534, 259);
            this.listBoxWordsToBeRecognised.Name = "listBoxWordsToBeRecognised";
            this.listBoxWordsToBeRecognised.Size = new System.Drawing.Size(220, 238);
            this.listBoxWordsToBeRecognised.TabIndex = 23;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label4.Location = new System.Drawing.Point(531, 243);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(128, 13);
            this.label4.TabIndex = 24;
            this.label4.Text = "Words to be Recognised ";
            // 
            // frmSpeechSample
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(766, 534);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.listBoxWordsToBeRecognised);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.lblSR);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.listBoxRecognisedWords);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.btnTTSSpeech);
            this.Controls.Add(this.txtTTS);
            this.Controls.Add(this.listViewTTSVoices);
            this.Controls.Add(this.statusStrip1);
            this.Controls.Add(this.lblNumInstalledTTSVoices);
            this.Controls.Add(this.lblSelectedTTSVoice);
            this.Controls.Add(this.lblTTSVoices);
            this.Name = "frmSpeechSample";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Microsoft Server Speech Platform 10.2  - Text To Speech and Speech Recognition in" +
                " 26 languages";
            this.Load += new System.EventHandler(this.frmSpeechSample_Load);
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label lblTTSVoices;
        private System.Windows.Forms.Label lblSelectedTTSVoice;
        private System.Windows.Forms.Label lblNumInstalledTTSVoices;
        private System.Windows.Forms.StatusStrip statusStrip1;
        private System.Windows.Forms.ListView listViewTTSVoices;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Button btnTTSSpeech;
        private System.Windows.Forms.TextBox txtTTS;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.ListBox listBoxRecognisedWords;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.ToolTip toolTip1;
        private System.Windows.Forms.Label lblSR;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.ListBox listBoxWordsToBeRecognised;
        private System.Windows.Forms.Label label4;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions