Guest User

Untitled

a guest
Dec 1st, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. Guide to Not-Completely-Shitty Text-To-Speech
  2.  
  3. Step 1: Install MARY
  4.  
  5. - Go here: http://mary.dfki.de/Download/mary-4.3.0-released
  6. - Click "Download MARY TTS 4.3.0" to download the installer.
  7. - Run the installer (requires Java)
  8. - Follow the default installer settings. When it asks you what voices to
  9. install, just make sure it says that "cmu-slt-hsmm" is already downloaded
  10. (which it does by default) and then hit Quit. (Installing extra voices will
  11. make it use several GBs of RAM, so that you have to run the program with
  12. special Java settings or it will run out and crash. Also, you can re-run
  13. just this part of the installer later on if you want to get more voices.)
  14.  
  15.  
  16. Step 2: Start the MARY Server
  17.  
  18. - Look for the start menu item to run the MARY server. If you can't find it,
  19. find the directory where you installed MARY and run
  20. "MARY TTS/bin/maryserver".
  21.  
  22.  
  23. Step 3: Using MARY
  24.  
  25. - Start a browser and go to http://localhost:59125/
  26. - Make sure "Voice" is set to "cmu-slt-hsmm en_US female hmm". (This should
  27. be the default.)
  28. - Put text in the left box and hit the "SPEAK" button to hear it.
  29. - Don't forget to close the server when you're done.
  30.  
  31.  
  32. Other stuff:
  33.  
  34. - I found the default speaking rate was too fast. To slow it down you have to
  35. switch the input type from TEXT to RAWMARYXML. Then put these lines into
  36. the box:
  37.  
  38. <?xml version="1.0" encoding="UTF-8" ?>
  39. <maryxml version="0.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  40. xmlns="http://mary.dfki.de/2002/MaryXML" xml:lang="en-US">
  41.  
  42. <p><prosody rate="-40%">
  43.  
  44. <!-- INSERT TEXT HERE -->
  45.  
  46. </prosody></p></maryxml>
  47.  
  48. Put your text after the line that says "INSERT TEXT HERE". (Don't put your
  49. text inside the <!-- ... --> markers, or it will be ignored.) To adjust the
  50. speaking rate, change the -40% in the <prosody> tag to something else.
  51. (The rate setting is the percent change from the default rate, so -50% is
  52. slower than -40%, and -30% is faster.)
  53.  
  54. - Don't put in more than 2 or 3 paragraphs at a time, or it will take a long
  55. time to produce the audio when you press SPEAK.
  56.  
  57. - If you get no sound when you press SPEAK, there is probably some bad
  58. punctuation in your text. Try deleting different parts of the text until it
  59. starts working, then narrow down the broken part and fix it.
  60.  
  61. - You will get different kinds of pauses between words depending on what
  62. punctuation you use (comma vs. period - note that "..." is the same as just
  63. a single period). Also, a period will produce different effects depending
  64. on whether the first letter of the following word is capitalized or not.
Advertisement
Add Comment
Please, Sign In to add comment