FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 0dcd1de3 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1034 29193198-4895-4776-b068-10539e920549
parent 4347db3d
No related branches found
No related tags found
No related merge requests found
......@@ -365,6 +365,7 @@ partialsDirectory = "partials"
# directory to let gradint know consecutive tone 1's are OK.
# One way to pitch-calibrate the tone 1's is to download
# praat from www.praat.org and use a script like this:
# (works in praat v5.0.2, NOT v5.1.29)
# for N in *1*.wav; do echo "Read from file... $N"; echo "Change gender... 75.0 600.0 1.0 250 1.0 1.0"; echo "nowarn Write to WAV file... $N"; echo "Remove"; done > temp.praat ; praat temp.praat
# replacing 250 with the frequency of an average tone 1
# (don't worry about the function being called "change gender"; the
......
......@@ -955,4 +955,7 @@ for k in theMap.keys():
if k.endswith("-f") or k[:k.index("-")] in 'bang3 di3 dian3 duan3 lu3 qiang3 tan3 ting3': trim(k+".wav",threshold,0)
else: trim(k+".wav",threshold,threshold)
open("kou5-i.wav","wb").write(open("kou3-i.wav","rb").read())
print "All done, in new-stuff"+os.sep+""
print "All done, in new-stuff"+os.sep
print '''If you want to calibrate the tone 1s, do this:
(works in praat v5.0.2, NOT v5.1.29)
cd new-stuff ; for N in *1*.wav; do echo "Read from file... $N"; echo "Change gender... 75.0 600.0 1.0 200 1.0 1.0"; echo "nowarn Write to WAV file... $N"; echo "Remove"; done > temp.praat ; praat temp.praat ; touch \!calibrated'''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment