alsa

【FFmpeg学习】简单介绍

本秂侑毒 提交于 2020-08-17 06:22:13
一、 官网地址 官网地址 : https://ffmpeg.org github : https://github.com/FFmpeg/FFmpeg 二、它是什么,又能干什么 它是一套可以用来处理多媒体(如音频、视频等)的库和工具的集合。这个下面会有介绍。简而言之,就是可以用来做很多音视频处理工作的库。 1、看下有哪些库,分别有啥作用 libavcodec 用于各种类型声音/图像编解码。该库是音视频编解码核心,实现了市面上可见的绝大部分解码器的功能, libavcodec 库被其他各大解码器 ffdshow, Mplayer 等所包含或应用。 libavdevice 硬 件 采 集 、 加 速 、 显 示 。 操 作 计 算 机 中 常 用 的 音 视 频 捕 获 或 输 出 设 备 :ALSA,AUDIO_BEOS,JACK,OSS,1394, VFW。 libavfilter filter(FileIO、 FPS、 DrawText) 音视频滤波器的开发,如宽高比 裁剪 格式化 非格式化 伸缩。 libavformat 用于各种音视频封装格式的生成和解析,包括获取解码所需信息以生成解码上下文结构和读取音视频帧等功能;音视频的格式解析协议,为 libavcodec 分析码流提供独立的音频或视频码流源。 libavresample 音视频封转编解码格式预设等。 libavutil

三个小白是如何在三个月内搭一个基于kaldi的嵌入式在线语音识别系统的

五迷三道 提交于 2020-08-16 08:23:52
前面的博客里说过最近几个月我从传统语音(语音通信)切到了智能语音(语音识别)。刚开始是学语音识别领域的基础知识,学了后把自己学到的写了PPT给组内同学做了presentation( 语音识别传统方法(GMM+HMM+NGRAM)概述 )。一段时间后老板就布置了具体任务:在我们公司自己的ARM芯片上基于kaldi搭建一个在线语音识别系统,三个人花三个月左右的时间完成。由于我们都是语音识别领域的小白,要求可以低些,就用传统的GMM-HMM来实现。说实话接到这个任务我们心里是有点没底的,不知道能不能按时完成,毕竟我们对语音识别不熟,对kaldi不熟。既然任务下达了,硬着头皮也要上,并尽最大努力完成。我本能的先在网上用百度/google搜了搜,看有没有一些经验可供参考,好让我们少走弯路。遗憾的是没搜到有价值的东西。没办法,我们只能根据自己以前的经验摸索着前进。最终我们按计划花了不到三个月的时间完成了嵌入式平台上在线语音识别系统的搭建。虽然只是demo,但是为后面真正做商用的产品打下了良好的基础,累积了不少的经验。今天我就把我们怎么做的分享出来,给也想做类似产品的朋友做个参考。 既然作为一个项目来做,就要有计划,分几个阶段完成这个项目。我在学习语音识别基础知识时对kaldi有一个简单的了解(在做语音识别前就已知kaldi的大名,没办法这几年人工智能(AI)太热了

ALSA (snd_pcm_open) over SSH?

邮差的信 提交于 2020-08-11 03:29:29
问题 I have written an application using ALSA (snd_pcm_open, snd_pcm_readi, etc). The application works perfect locally on my machine. However, when I SSH to another machine and run it through the SSH connection, all calls to snd_pcm_open fails with a message "Device does not exist" or similar. The remote machine has a soundcard just as my local machine has. What could be the problem here? Thanks! EDIT: If I run the application using the console on the remote computer (walk to the computer, login,

Qt - No audio output device - Yocto/poky

自古美人都是妖i 提交于 2020-07-23 06:28:38
问题 I'm trying to play a WAV audio file with Qt (QSound, QSoundeffect) on an ARM based Atmel board (sama5d31ek). I've build the rootfs (and Qt SDK for cross-compiling) with Yocto/poky. When playing with QSound I get the following log message: using null output device, none available . I'm getting nothing when running: foreach (const QAudioDeviceInfo &deviceInfo, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)) qDebug() << "Device name: " << deviceInfo.deviceName(); I can play the file via

Qt - No audio output device - Yocto/poky

大憨熊 提交于 2020-07-23 06:26:21
问题 I'm trying to play a WAV audio file with Qt (QSound, QSoundeffect) on an ARM based Atmel board (sama5d31ek). I've build the rootfs (and Qt SDK for cross-compiling) with Yocto/poky. When playing with QSound I get the following log message: using null output device, none available . I'm getting nothing when running: foreach (const QAudioDeviceInfo &deviceInfo, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)) qDebug() << "Device name: " << deviceInfo.deviceName(); I can play the file via

Cast void* to memcpy to get a float value

戏子无情 提交于 2020-05-17 05:58:07
问题 Here is an example of the problem I'm trying to solve I get a buffer from the microphone and try and process it content. as kindly guided from this question Im trying to convert a char* to float* the logic I declare a vector to hold my desired float then resize it to that of ArBuffer() and then copy to the vector. ArBuffer() is a void gonna have to cast this to memcpy? #include "Lib_api.h" #include <alsa/asoundlib.h> #include <stdio.h> #include "audiorecorder.h" #include "Globals.h" #include

基于Orangpi Zero和Linux ALSA实现WIFI无线音箱(一)

微笑、不失礼 提交于 2020-05-02 21:51:32
作品已经完成,先上源码: https://files.cnblogs.com/files/qzrzq1/WIFISpeaker.zip 全文包含三篇,这是第一篇,作为前言和概述。 第二篇: 基于Orangpi Zero和Linux ALSA实现WIFI无线音箱(二) 第三篇: 基于Orangpi Zero和Linux ALSA实现WIFI无线音箱(三) 以下是正文: 一、前言   先说为什么要做这个作品。作者手头上有一闲置的蓝牙音箱,可恨的是笔记本电脑没有蓝牙功能,而USB口只有两个,即使买个蓝牙适配器也不够用USB口用,也不考虑用USB Hub,看着这么多线就让人觉得糟心。刚好还有一块OrangPi Zero,突发奇想,打算利用它和家里的WIFI无线网络实现无线音箱的功能。其实类似功能音箱某宝上也有,不过大部分都是打着云音箱、智能音箱的旗号,个人觉得这类音箱都有一个很大问题:只能播放网络音乐或者使用DLNA、Airplay等协议从手机或电脑推送音频,可是实际上很多浏览器、播放器并不支持DLNA或Airplay推送,这就很大的限制了这种音箱的使用范围。例如作者习惯使用Potplayer(不支持DLNA和Airplay)作为PC端的音乐播放器和视频播放器,这种情况下,这些智能音箱就完全没用了。另外,在安卓上也有一些类似的app,类似Soundwire、wifiaudio等

Linux audio驱动模型

て烟熏妆下的殇ゞ 提交于 2020-05-02 12:39:05
linux驱动 alsa模型: Linux ALSA声卡驱动之一:ALSA架构简介 Linux ALSA声卡驱动之二:声卡的创建 Linux ALSA声卡驱动之三:PCM设备的创建 Linux ALSA声卡驱动之四:Control设备的创建 Linux ALSA声卡驱动之五:移动设备中的ALSA(ASoC) Linux ALSA声卡驱动之六:ASoC架构中的Machine Linux ALSA声卡驱动之七:ASoC架构中的Codec Linux ALSA声卡驱动之八:ASoC架构中的Platform Android音频系统: Android 音频系统:从 AudioTrack 到 AudioFlinger Android音频系统之AudioPolicyService 深入剖析Android音频之AudioPolicyService Android音频系统之AudioFlinger(一) Android音频系统之AudioFlinger(二) Android音频系统之AudioFlinger(三) Android音频系统之AudioFlinger(四) Android音频系统之AudioTrack(一) Android音频系统之AudioTrack(二) ALSA声卡驱动中的DAPM详解: ALSA声卡驱动中的DAPM详解之一:kcontrol ALSA声卡驱动中的DAPM详解之二