コード例 #1
0
ファイル: synthesis.py プロジェクト: rlui1/ttsserver
def afraid_sox_init(speed, depth, number_of_bends, start_time_now,
                    end_time_now, cents, tempo, intensity):
    patch = Transformer()
    patch.tremolo(speed, depth)
    patch.tempo(tempo, 's')
    patch.gain(intensity)
    # patch.bend(number_of_bends,start_time_now,end_time_now,cents,50)
    return patch
コード例 #2
0
ファイル: synthesis.py プロジェクト: mikiasw/emotivespeech
def afraid_sox_init(speed,depth,number_of_bends,start_time_now,end_time_now,cents,filenameout):
	patch = Transformer()
	patch.tremolo(speed,depth)
	patch.tempo(1.05,'s')
	patch.gain(1.1)
	#patch.bend(number_of_bends,start_time_now,end_time_now,cents,50)			
	patch.build(FILE_NAME_PATH,filenameout)
	return patch
コード例 #3
0
ファイル: synthesis.py プロジェクト: mikiasw/emotivespeech
def happy_tensed_sox_init(filenameout,semitones,number_of_bends,start_time_now,end_time_now,cents,CUTFREQ,gain,QFACTOR):
	patch = Transformer()
	patch.pitch(semitones,False)
	patch.tempo(1.18,'s')
	patch.gain(gain)
	#patch.bend(number_of_bends,start_time_now,end_time_now,cents,50)			
	patch.treble(gain,CUTFREQ,0.5)
	patch.equalizer(CUTFREQ,QFACTOR,gain)
	patch.build(FILE_NAME_PATH,filenameout)
	return patch
コード例 #4
0
ファイル: synthesis.py プロジェクト: rlui1/ttsserver
def happy_tensed_sox_init(semitones, number_of_bends, start_time_now,
                          end_time_now, cents, cutfreq, gain, tempo, intensity,
                          qfactor):
    patch = Transformer()
    patch.pitch(semitones, False)
    patch.tempo(tempo, 's')
    patch.gain(intensity)
    # patch.bend(number_of_bends,start_time_now,end_time_now,cents,50)
    patch.treble(gain, cutfreq, 0.5)
    patch.equalizer(cutfreq, qfactor, gain)
    return patch
コード例 #5
0
def happy_sox_init(output_file_path, semitones, number_of_bends,
                   start_time_now, end_time_now, cents, CUTFREQ, gain,
                   QFACTOR):
    patch = Transformer()
    patch.pitch(semitones, False)
    patch.tempo(1.1, 's')
    patch.gain(2.0)
    #patch.bend(number_of_bends,start_time_now,end_time_now,cents,50)
    patch.treble(gain, CUTFREQ, 0.5)
    patch.equalizer(CUTFREQ, QFACTOR, gain)
    print FILE_NAME_PATH
    print output_file_path
    patch.build(FILE_NAME_PATH, output_file_path)
    return patch