Update README.md
Browse files96 unmodified lines97989910010110210310487 unmodified lines1921931941951961971981999 unmodified lines20921021121221321421596 unmodified lines|:------:|:----------:|:----------:|| base.fangyan | 74 M | ❌ || base.fangyan.streaming | 74 M |❌ || small.fangyan | 0.4 B | Encode-biased Hotwords || small.fangyan.streaming | 0.4 B | Encode-biased Hotwords || small.fangyan.prompt | 0.4 B | Prompt-based Hotwords |87 unmodified linesfrom dolphin import transcribemodel_name = 'small.fangyan'model = dolphin.load_model(model_name, f"/home/duhu/.cache/dolphin/{model_name}", "cpu")# model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cpu")result = transcribe(model, 'audio.wav')print(result.text)9 unmodified lines## prompt-based hotwordsmodel_name = 'small.fangyan.prompt'model = dolphin.load_model(model_name, f"/home/duhu/.cache/dolphin/{model_name}", "cpu")result = transcribe(model, 'audio.wav', hotwords=['诺香丹青牌科研胶囊'], use_prompt_hotword=True, use_two_stage_filter=True, decoding_method='attention')96 unmodified lines97989910010110210310487 unmodified lines1921931941951961971989 unmodified lines20820921021121221321496 unmodified lines|:------:|:----------:|:----------:|| base.fangyan | 74 M | ❌ || base.fangyan.streaming | 74 M |❌ || small.fangyan | 0.4 B | Encoder-biased Hotwords || small.fangyan.streaming | 0.4 B | Encoder-biased Hotwords || small.fangyan.prompt | 0.4 B | Prompt-based Hotwords |87 unmodified linesfrom dolphin import transcribemodel_name = 'small.fangyan'model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cuda")result = transcribe(model, 'audio.wav')print(result.text)9 unmodified lines## prompt-based hotwordsmodel_name = 'small.fangyan.prompt'model = dolphin.load_model(model_name, f"/data/models/dolphin/{model_name}", "cuda")result = transcribe(model, 'audio.wav', hotwords=['诺香丹青牌科研胶囊'], use_prompt_hotword=True, use_two_stage_filter=True, decoding_method='attention')
README.md+4-5