基于百度的语音识别,用python实现,pyaudio+pyqt

Overview

Speech-recognition

基于百度的语音识别,python3.8(conda)+pyaudio+pyqt+baidu-aip

百度有面向python的语音识别框架,用pip 直接安装

pip install baidu-aip

安装完成后,在百度智能云完成登录,在控制台创建一个应用。

在下面填入自己的 APP_ID,API_KEY,SECRET_KEY后,能运行即可

def main():
    APP_ID = 'your id'
    API_KEY = 'your key'
    SECRET_KEY = 'your secret keys'

    client = AipSpeech(APP_ID, API_KEY, SECRET_KEY)
    outfile = "./audio/16k.wav"

    app = QApplication(sys.argv)
    form = ExampleApp(outfile, client)
    form.show()

    app.exec_()


if __name__ == '__main__':
    main()

You might also like...
Releases(V1.0)
Owner
J-L
Delayed enjoyment
J-L
Saptak Bhoumik 14 May 24, 2022
Multi-handle range slider widget for PyQt/PySide

QtRangeSlider The missing multi-handle range slider widget for PyQt & PySide The goal of this package is to provide a Range Slider (a slider with 2 or

Talley Lambert 28 Dec 26, 2022
This repository contains code for a youtube-dl GUI written in PyQt.

youtube-dl-GUI This repository contains code for a youtube-dl GUI written in PyQt. It is based on youtube-dl which is a Video downloading script maint

M.Yasoob Ullah Khalid ☺ 191 Jan 2, 2023
PyQt QGraphicsView with selection box. User can move vertical border of the box horizontally.

pyqt-horizontal-selection-square-graphics-view PyQt QGraphicsView with selection box. User can move vertical border of the box horizontally. Requireme

Jung Gyu Yoon 3 Nov 7, 2022
Osu statistics right on your desktop, made with pyqt

Osu!Stat Osu statistics right on your desktop, made with Qt5 Credits Would like to thank these creators for their projects and contributions. ppy, osu

Aditya Gupta 21 Jul 13, 2022
Cricket game using PYQT

Cricket-game-using-PYQT This is a Fantasy cricket Desktop application build in p

Sanket Mane 1 Jan 3, 2022
PyQt Custom Frameless Main Window (Enable to move and resize)

pyqt-custom-frameless-mainwindow PyQt Custom Frameless Main Window (Enable to move and resize) Requirements PyQt5 >= 5.8 Setup pip3 install git+https:

Jung Gyu Yoon 1 Jan 13, 2022
Mini is a web browser application based on the Python PyQt web engine, made in 290 lines of code.

Mini Mini is a web browser application based on the Python PyQt web engine, made in 290 lines of code. The code is written and published as is, so the

Dmitry Karpenko 6 Nov 7, 2022
A simple browser for familiarity to PyQt :)

Erown_Browser a simple browser for familiarity to PyQt :) for start work with this install requirements by pip install -r requirements or you can use

Ehsan Amirahmadi 9 May 18, 2022