Changeset 4120fbc for python/demos/demo_simple_robot_voice.py
- Timestamp:
- May 16, 2016, 3:16:00 AM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- dc654f8
- Parents:
- 416ddd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_simple_robot_voice.py
r416ddd1 r4120fbc 6 6 if __name__ == '__main__': 7 7 if len(sys.argv) < 2: 8 print 'usage: %s <inputfile> <outputfile>' % sys.argv[0]8 print('usage: %s <inputfile> <outputfile>' % sys.argv[0]) 9 9 sys.exit(1) 10 10 samplerate = 44100 … … 14 14 15 15 win_s = 512 # fft size 16 hop_s = win_s / 2# hop size16 hop_s = win_s // 2 # hop size 17 17 pv = pvoc(win_s, hop_s) # phase vocoder 18 18 … … 26 26 total_frames += read 27 27 28 print "wrote", total_frames, "from", f.uri, "to", g.uri 28 format_str = "read {:d} samples from {:s}, written to {:s}" 29 print(format_str.format(total_frames, f.uri, g.uri))
Note: See TracChangeset
for help on using the changeset viewer.