1.18号AI模拟面试机器人那节课如何把只支持英文的mms-tts-eng替换成多语言的openai whisper模型? #541
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#541
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
我看了那节课的资料, 里面全是英文的, 需要改成支持中文的whisper模型
看下课件或者视频里面有修改tts模型的位置,直接替换模型的参数。
您这回答得太简略了, 我扒了代码和课件pdf资料, 貌似修改.env文件不全对, 代码其它部分似乎有点耦合?
而且我把网盘里的代码下载下来发现一处明显的逻辑错误, llmApiTest.py的 第55 行直接把promt = user_message是有逻辑错误的, 整体应该改成这样:
感谢提供的代码意见;耦合的话可以试着解耦下,代码质量有限。有些代码是基于某个模型修改的,没有特别强的通用性。
具体代码的修改位置:修改ttsApiTest.py部署模型的代码;按照使用的流式或者非流式,修改_read_text_stream或者_read_text_non_stream