Code Monkey home page Code Monkey logo

mp3-to-txt's Introduction

简体中文

这是什么

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

如何使用

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

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

avatar

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

English

What is this

Audio/video extraction text, that is, the script of mp3/4 to txt, mainly calls the interface of iFLYTEK's voice transcription

How to use

For mp4 files, please directly modify the suffix of the file to mp3, and so on for similar formats. Support modification to wav format, but the recognition speed is too slow, not recommended

Prepare the mp3 file, obtain APPID and SecretKey through Xunfei Open Platform, confirm the relative location of the file to be identified, and then modify the last few lines of code

avatar

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

mp3-to-txt's People

Contributors

hty-dby avatar

Stargazers

 avatar  avatar 张志诚 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mp3-to-txt's Issues

出现报错

你好,出现报错:/prepare error:{'ok': -1, 'err_no': 26623, 'failed': '预处理音频格式受限', 'data': None},如何解决,求解答

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.