Open YKoustubhRao opened 8 months ago
translator = Translator("seamlessM4T_v2_large", "vocoder_v2", device = torch.device("cpu"), dtype = torch.float16) lang = 'eng'
for file in os.listdir(src): textoutput, = translator.predict( input = os.path.join(src, file), task_str = 'ASR', tgt_lang = lang )
fairseq2n.bindings.data.string.CString object to python string
You can simply do str(<fairseq2n.bindings.data.string.CString Object>) or <fairseq2n.bindings.data.string.CString Object>.__str__()
str(<fairseq2n.bindings.data.string.CString Object>)
<fairseq2n.bindings.data.string.CString Object>.__str__()
translator = Translator("seamlessM4T_v2_large", "vocoder_v2", device = torch.device("cpu"), dtype = torch.float16) lang = 'eng'
for file in os.listdir(src): textoutput, = translator.predict( input = os.path.join(src, file), task_str = 'ASR', tgt_lang = lang )
fairseq2n.bindings.data.string.CString object to python string