X Tutup
ReactorcoreGames

Example script for Script To Voice Generator program

Mar 5th, 2026
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # The Haunted Apartment
  2.  
  3. // ─────────────────────────────────────────────────────────────────
  4. // ROBUST TEST SCRIPT
  5. // Tests all valid parser features in a realistic story context.
  6. // ─────────────────────────────────────────────────────────────────
  7.  
  8. /*
  9. Cast:
  10. Alex - a nervous new tenant
  11. Jordan - Alex's skeptical friend
  12. Landlord - gruff building manager
  13. Narrator - scene-setting voice
  14.  
  15. Sound channels:
  16. c1 = background ambience (looped)
  17. c2 = one-shot effects
  18. */
  19.  
  20. ## Scene 1 - Moving Day
  21.  
  22. {play street_noise.mp3, c1, loop}
  23.  
  24. Narrator: It was a grey October afternoon when Alex moved into apartment 4B.
  25.  
  26. (pause 1.0s)
  27.  
  28. Alex: [muttering] Box number _twelve_. Where did I put box number twelve?
  29. Jordan: You've been saying that for an hour. // inline comment - ignored by parser
  30. Alex: Because I **need** box twelve!
  31.  
  32. {play door_knock.wav, c2, once}
  33.  
  34. Landlord: Door's open. You the new tenant?
  35. Alex: That's me. Alex Mercer.
  36. Landlord: Right. Rules are simple: no loud music after ten, no pets, no--
  37. Alex: --subletting, yes, I read the lease.
  38.  
  39. (1.5)
  40.  
  41. Landlord: [grumbles] Smart one. Keys are on the counter.
  42.  
  43. {stop c1}
  44.  
  45. ## Scene 2 - First Night
  46.  
  47. {play rain_on_window.mp3, c1, loop}
  48.  
  49. (pause 2.0s)
  50.  
  51. Narrator: By midnight the rain had started. Alex was alone.
  52.  
  53. Alex: ((This place feels wrong. I can't explain it.))
  54. Alex: [sighs] Come on, it's just an old building.
  55.  
  56. (0.5)
  57.  
  58. Jordan: [via phone] So how's the new place?
  59. Alex: Honestly? A bit creepy. The pipes make sounds like--
  60. Jordan: --like every apartment ever? You're so dramatic.
  61.  
  62. {play pipe_clang.wav, c2, once}
  63.  
  64. Alex: Did you hear that??
  65. Jordan: Hear what? My connection is fine.
  66. Alex: Never mind. I'm going to bed.
  67.  
  68. (pause 1.5s)
  69.  
  70. Jordan: ((She's going to call me at three in the morning. I know it.))
  71.  
  72. {stop c1}
  73.  
  74. ## Scene 3 - The Investigation
  75.  
  76. // The next morning. Sunlight helps.
  77.  
  78. {play morning_birds.mp3, c1, loop}
  79.  
  80. Narrator: Morning came. Alex had not, in fact, called at three in the morning.
  81.  
  82. Jordan: Okay I'll admit it... I'm impressed.
  83. Alex: See? Nothing to worry about.
  84. Alex: Although--
  85.  
  86. (0.3)
  87.  
  88. Alex: --the mirror in the bathroom is _definitely_ cracked.
  89. Jordan: That's just bad luck, not a haunting.
  90. Alex: [quietly] Seven years of it.
  91.  
  92. // Testing apostrophes and hyphens in speaker IDs below
  93.  
  94. Sarah O'Brien: [from hallway] Sorry to interrupt -- I'm in 4A. Heard voices.
  95. Alex: Oh! Hi. I'm Alex.
  96. Sarah O'Brien: Sarah. Fair warning: the super-heating cuts out mid-October.
  97. Jordan: Classic old building stuff.
  98.  
  99. (2.0)
  100.  
  101. Sarah O'Brien: ((They seem nice. Maybe this floor won't be so quiet.))
  102.  
  103. {play door_close.wav, c2, once}
  104.  
  105. {stop c1}
  106.  
  107. ## Scene 4 - Late Punctuation Tests
  108.  
  109. // This scene exists to exercise the ending-punctuation detection logic.
  110.  
  111. Narrator: Various lines to test punctuation tiers.
  112.  
  113. Alex: This is a plain statement.
  114. Alex: Are you sure?
  115. Alex: Watch out!
  116. Alex: We have to go--
  117. Alex: I can't believe it...
  118. Alex: Are you _kidding_ me??
  119. Alex: This is unacceptable!!!
  120. Alex: I just... I don't know what to say.
  121. Alex: **Fine.**
  122.  
  123. (pause 0.5s)
  124.  
  125. Jordan: Okay, okay, I get it.
  126.  
  127. ## Scene 5 - Markdown and Bracket Cleanup
  128.  
  129. Narrator: Testing text-cleaning pipeline for TTS output.
  130.  
  131. Alex: I said _hello_ and you said **nothing**.
  132. Jordan: [clears throat] That is _not_ what happened.
  133. Alex: We can agree to disagree. [shrugs]
  134. Jordan: [laughing] You're impossible, you know that?
  135.  
  136. // Inline comment stripping
  137. Alex: Let's just move on. // this part should be stripped by parser
  138. Jordan: Agreed. // likewise
  139.  
  140. (1.0)
  141.  
  142. Narrator: And so the haunted apartment turned out to be merely old, drafty, and full of neighbours.
  143.  
  144. (pause 1.5s)
  145.  
  146. Alex: [quietly] **Still** not convinced about that mirror though.
  147. Jordan: ((Neither am I.))
  148.  
  149. {stop c1}
  150.  
Advertisement
Add Comment
Please, Sign In to add comment
X Tutup