Skip to content

音源/视频提取文字,即 mp3/4 转 txt 的脚本,主要调用了讯飞语音转写的接口||Audio/video extraction text, that is, the script of mp3/4 to txt, mainly calls the interface of iFLYTEK voice transcription

License

Notifications You must be signed in to change notification settings

HTY-DBY/mp34-to-txt-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1. 说明

音源/视频提取文字,即 mp3/4 转 txt 的脚本,主要调用了讯飞语音转写的接口

2. 如何使用

对于 mp4 文件,请直接修改文件的后缀名为 mp3 即可,相似格式依次类推。支持修改为 wav 格式,但是识别速度太慢,不建议

准备好 mp3 文件,并通过讯飞开放平台获取 APPID 和 SecretKey,并确认所需识别文件的相对位置,然后修改最后几行代码即可

填上 ID 和 密钥:appid,secret_key 填上需要转换的文件的位置:upload_file_path

avatar

if __name__ == '__main__':
    api = RequestApi(
        appid="", secret_key="", upload_file_path=r"")
    api.all_api_request()

About

音源/视频提取文字,即 mp3/4 转 txt 的脚本,主要调用了讯飞语音转写的接口||Audio/video extraction text, that is, the script of mp3/4 to txt, mainly calls the interface of iFLYTEK voice transcription

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages