def chooseVoiceMenu(self,vb):
        print(self.voiceHeader(vb))
        try:
            response = raw_input('Choose a voice by number from above. \nOr:\n'
                                 '0 to use an equal mixture.\n'
                                 'C to assign custom weights.\n')
        except __HOLE__:
            response = input('Choose a voice by number from above. \nOr:\n'
                             '0 to use an equal mixture.\n'
                             'C to assign custom weights.\n')
        if response.isdigit():
            response = int(response)
            voicelist = sorted(vb.voices)
            print(len(voicelist))
            if response == 0:
                print("Voices weighted equally!")
            elif response <= len(voicelist):
                voicename = voicelist[response-1]
                vb.useOneVoice(voicename)
                print(voicename + ' selected!')
        elif response == 'C':
            self.setWeightMenu(vb)
        else:
            print('Invalid response! Type a number in range.')
dataset/ETHPy150Open jbrew/pt-voicebox/writer.py/Writer.chooseVoiceMenu