hubert提交

This commit is contained in:
yanyuxiyangzk@126.com 2024-04-03 15:08:38 +08:00
parent b33e7ec9e2
commit d8f24e7b96
2 changed files with 4 additions and 2 deletions

3
app.py
View File

@ -247,8 +247,9 @@ if __name__ == '__main__':
parser.add_argument('--asr_play', action='store_true', help="play out the audio") parser.add_argument('--asr_play', action='store_true', help="play out the audio")
#parser.add_argument('--asr_model', type=str, default='deepspeech') #parser.add_argument('--asr_model', type=str, default='deepspeech')
parser.add_argument('--asr_model', type=str, default='cpierse/wav2vec2-large-xlsr-53-esperanto') #facebook/hubert-large-ls960-ft # parser.add_argument('--asr_model', type=str, default='cpierse/wav2vec2-large-xlsr-53-esperanto') #
# parser.add_argument('--asr_model', type=str, default='facebook/wav2vec2-large-960h-lv60-self') # parser.add_argument('--asr_model', type=str, default='facebook/wav2vec2-large-960h-lv60-self')
parser.add_argument('--asr_model', type=str, default='facebook/hubert-large-ls960-ft')
parser.add_argument('--push_url', type=str, default='rtmp://localhost/live/livestream') parser.add_argument('--push_url', type=str, default='rtmp://localhost/live/livestream')

View File

@ -470,8 +470,9 @@ if __name__ == '__main__':
parser.add_argument('--wav', type=str, default='') parser.add_argument('--wav', type=str, default='')
parser.add_argument('--play', action='store_true', help="play out the audio") parser.add_argument('--play', action='store_true', help="play out the audio")
parser.add_argument('--model', type=str, default='cpierse/wav2vec2-large-xlsr-53-esperanto') # parser.add_argument('--model', type=str, default='cpierse/wav2vec2-large-xlsr-53-esperanto')
# parser.add_argument('--model', type=str, default='facebook/wav2vec2-large-960h-lv60-self') # parser.add_argument('--model', type=str, default='facebook/wav2vec2-large-960h-lv60-self')
parser.add_argument('--model', type=str, default='facebook/hubert-large-ls960-ft')
parser.add_argument('--save_feats', action='store_true') parser.add_argument('--save_feats', action='store_true')
# audio FPS # audio FPS