Question

Can someone create a MAT lab text to speech code that will say the letters as...

Can someone create a MAT lab text to speech code that will say the letters as the user types it. Please type it out.

Homework Answers

Answer #1
% A Program to convert text to speech.
% Get the sentence
userPrompt = 'type to convert to speech';
titleBar = 'convert Text to Speech';
defaultString = 'hey!  type here!';
caUserInput = inputdlg(userPrompt, titleBar, 1, {defaultString});
if isempty(caUserInput)
        return;
end; % Bail out if they clicked Cancel.
caUserInput = char(caUserInput); % Convert from cell to string.
NET.addAssembly('System.Speech');
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, caUserInput)
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1.Say that we code 256 different letters. Let num(X) be the number of times an arbitrary...
1.Say that we code 256 different letters. Let num(X) be the number of times an arbitrary letter appears in the text . Assume that for every X and Y both num(Y ) > num(X)/2 and num(X) > num(Y)/2 hold. Is the ASCII (8 bits) code worse than the Huffman code in this case?
Create a text file called “Trivia.txt” that contains the contents of a trivia game, where the...
Create a text file called “Trivia.txt” that contains the contents of a trivia game, where the questions and answers are on separate lines. Example: How many players are on a Baseball team? Nine What is the name of Batmans butler? Alfred Hg is the chemical symbol for what element? Mercury Create a program that reads the trivia questions from this text file, prints them out to netbeans and asks the user to input an answer. Compare the users answer to...
PART B- Javascript Using a text editor (VS Code or Notepad) and a web browser, you...
PART B- Javascript Using a text editor (VS Code or Notepad) and a web browser, you will demonstrate how to create an HTML file, externally link a JavaScript file, and write some source code in the JavaScript file. a..Create two blank files to be an HTML file and a JavaScript file. The file names should be partA.html and partA.js. b.. Create a basic HTML webpage structure. c..Link the JavaScript file to the HTML file using the <script> tag. d.. Prompt...
***C Programming, Create program that can ask users to input a wird of text. Then convert...
***C Programming, Create program that can ask users to input a wird of text. Then convert the user's text to uppercase. Users may lowercase or uppercase letters. use Strings to comoute these tasks... 'x'+1='y'
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and save your Matlab code in a script file. i) Cosine signal of frequency 100 Hz over the range [0,0.1] seconds and samples spaced 10^- 4 seconds apart with a phase of pi/2 and an amplitude of 1.   PLEASE USE MAT LAB ONLY. THANK YOU ii) A square wave that oscillates between 0 and 1 every five samples, plot 3 periods of the waveform. iii)...
Hello Everyone, I need to write a Python code for AES encryption and decryption for any...
Hello Everyone, I need to write a Python code for AES encryption and decryption for any text entered by the user. Can anyone please help me out with it? Thank you so much.
For this lab assignment you will need to write some code and create some graphs. You...
For this lab assignment you will need to write some code and create some graphs. You may use excel to create your graphs, or other language of your choice. Your data needs to demonstrate the experimental running time for Selection Sort (code in book), Merge Sort (code in book), and the Arrays.sort() method. Here is a basic outline of how you need to code this assignment. 1) Create several arrays of size 100, 1000, 10000, 100000, 1000000, … (you need...
can someone explain the extraction of carboxylic acid from phenol in steps in a lab setting...
can someone explain the extraction of carboxylic acid from phenol in steps in a lab setting (t-butylmethyether is the solvent used). Please explain how to precipitate the the component from the aqeuous layer and at what steps it should be cooled in an ice bath. Thanks
You are to create a hard link to one of your existing files on someone else's...
You are to create a hard link to one of your existing files on someone else's directory (or vice versa). In other words, you know that you can link a file within your own directories, but you can also have a link to one of your files on other areas of the unix system as long as you have permissions to write to that directory (in this case, your partner). Create a subdirectory called temp where you can place this...
use php only User can input ant value in text format Users have no restriction on...
use php only User can input ant value in text format Users have no restriction on the number of order items they can. The program outputs the data type: String Integer Boolean Decimal NULL Requirements 1. You may not use an array 2. You may not use any 'is_' functions for checking null, bool, integer, decimal or string types. 3. You may not use regular expressions. 4. If the user enters 'null' the value should be null. 5. If the...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT