| 1 |
# bss_twoSoundsMixed.praat |
| 2 |
# test_bss_example_manual.praat |
| 3 |
# djmw 20151030 |
| 4 |
# ppgb 20190811 |
| 5 |
|
| 6 |
Erase all |
| 7 |
|
| 8 |
synth = Create SpeechSynthesizer: "English (Great Britain)", "Female1" |
| 9 |
s1 = To Sound: "This is some text.", "no" |
| 10 |
selectObject: synth |
| 11 |
Set speech output settings: 44100, 0.01, 80, 50, 145, "no", "IPA" |
| 12 |
Speech output settings: 44100, 0.01, 1.2, 1.0, 145, "IPA" |
| 13 |
Estimate speech rate from speech: "no" |
| 14 |
|
| 15 |
s2 =To Sound: "abracadabra, abra", "no" |
| 16 |
plusObject: s1 |
| 17 |
stereo = Combine to stereo |
| 18 |
Select inner viewport: 1, 6, 0.1, 1.9 |
| 19 |
Draw: 0, 0, 0, 0, "no", "Curve" |
| 20 |
Draw inner box |
| 21 |
mm = Create simple MixingMatrix: "mm", 2, 2, "1.0 2.0 2.0 1.0" |
| 22 |
plus stereo |
| 23 |
mixed = Mix |
| 24 |
Select inner viewport: 1, 6, 2.1, 3.9 |
| 25 |
Draw: 0, 0, 0, 0, "no", "Curve" |
| 26 |
Draw inner box |
| 27 |
|
| 28 |
unmixed = To Sound (bss): 0.1, 1, 20, 0.00021, 100, 0.001, "ffdiag" |
| 29 |
Select inner viewport: 1, 6, 4.1, 5.9 |
| 30 |
Draw: 0, 0, 0, 0, "no", "Curve" |
| 31 |
Draw inner box |
| 32 |
|
| 33 |
removeObject: synth, stereo, s1, s2, mixed, mm, unmixed |