opus

Web Audio API: decodeAudioData doesn't decode opus in Chrome

旧城冷巷雨未停 提交于 2019-12-21 05:46:13
问题 I'm currently trying to make Opus packets work with Web Audio API. The problem is however, while it should be natively supported by FireFox and Chrome, only FireFox can decode a stream of OPUS samples using decodeAudioData from the Web Audio API. Chrome does recognize the file when I drag the opus file into the browser and it also does play it! So I'm wondering that I may be doing something wrong here causing failure in Chrome. Then I used some sample code from http://awm.jp/~yoya/js/audio

add cpp classes into android project

送分小仙女□ 提交于 2019-12-11 05:50:01
问题 How can I add a .cpp class (like speex or opus) into my android studio project ? I already tried to insert using externalNativeBuild like : externalNativeBuild { ndkBuild { arguments "NDK_APPLICATION_MK:=Application.mk" abiFilters "armeabi", "armeabi-v7a", "x86" cFlags "-I\$(LOCAL_PATH)/jnispeex.cpp -I\$(LOCAL_PATH)/jnicelt11.cpp -I\$(LOCAL_PATH)/jnicelt7.cpp -I\$(LOCAL_PATH)/jniopus -D__EMX__ -DUSE_KISS_FFT -DFIXED_POINT -DEXPORT='' -DHAVE_CONFIG_H -fvisibility=hidden -DOPUS_BUILD -DVAR

How Can I Add Metadata in opus files?

不羁岁月 提交于 2019-12-10 18:08:16
问题 I'm interested in writing metadata for .opus files, but all of the posts that I've seen so far are for more mainstream formats such as .ogg, or .mp3. I'm uncertain as to whether ID3 tags work with .opus files, and I can't find any resources that say whether they do or not. I've seen something similar in (How to add metadata to WAV file?). How can I write metadata such as title, author, and the like to .opus files? I'm thinking that a libopus enabled ffmpeg would be able to do it, but from the

how to play .opus audio file in android?

﹥>﹥吖頭↗ 提交于 2019-12-07 13:43:31
问题 I'm developing an app for Recognize speech using google cloud speech APi and recording audio simultaneously. git link I tried to play recorded .opus audio file getting IOException W/System.err: java.io.IOException: setDataSource failed. Any idea?? Thanks!! 回答1: A user on the android stack exchange mentioned being able to play opus files when they have a .ogg extension in newer versions of Android. Rename your .opus files to .ogg. 回答2: I don't know about that specific error, but the Supported

几款效率神器助你走上人生巅峰之园友推荐

社会主义新天地 提交于 2019-12-06 03:34:08
几款效率神器助你走上人生巅峰之园友推荐 https://www.cnblogs.com/hafiz/p/7739838.html 一、背景   在上篇文章中,我给大家推荐了我工作和生活中最常用的效率软件,引起了猿友的热烈反响,那么这篇文章,我们就来扒一扒猿友留言推荐的效率软件,望诸君笑纳~ 二、猿友推荐软件清单   1. Directory Opus 来自猿友: Snail ° Directory Opus 是一款由澳大利亚 GP 软件公司设计开发的功能强大且简单、易用的文件资源管理工具,其主程序采用与 Windows 系统相似的用户交互界面即具有良好的适应性。与之相媲美的则是我们熟知的 Total Commander 文件管理器,称得上是双峰对峙、二水分流,不过在易用性方面 Directory Opus 更适合于鼠标一族。 Directory Opus 的主要优点体现在内置功能与文件收集两大方面,丰富的资料浏览及窗口排列方式、偏好设置给用户带来极大便利。 通过“ 资源管理器替代 ”设定可完美取代 Windows 资源管理器,使得文件管理操作从此变得流畅、简单、高效且富有个性化,对于拥有大屏幕且经常进行文件操作的鼠标一族来说选它没错。 关于用法: Directory Opus使用教程 下载地址: http://www.xiazaiba.com/html/6048.html

How to retrieve information from multiple/dual code signatures on an executable file

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been using the following code (taken from KB323809 article ) to retrieve information about the code signature on the executable file. This works fine for a single digital signature. But how to retrieve information for multiple code signatures? In that case the Microsoft code below simply retrives info only for the first signature. My thought was to call CryptMsgGetParam with CMSG_SIGNER_COUNT_PARAM to get the number of signatures and then pass each signature index to the subsequent call to CryptMsgGetParam with CMSG_SIGNER_INFO_PARAM

Decoding Opus audio data

旧时模样 提交于 2019-12-03 01:15:39
问题 I am trying to decode an Opus file back to raw 48 kHz. However I am unable to find any sample code to do that. My current code is this: void COpusCodec::Decode(unsigned char* encoded, short* decoded, unsigned int len) { int max_size=960*6;//not sure about this one int error; dec = opus_decoder_create(48000, 1, &error);//decode to 48kHz mono int frame_size=opus_decode(dec, encoded, len, decoded, max_size, 0); } The argument "encoded" might be larger amounts of data, so I think I have to split

Decoding Opus audio data

守給你的承諾、 提交于 2019-12-02 14:32:16
I am trying to decode an Opus file back to raw 48 kHz. However I am unable to find any sample code to do that. My current code is this: void COpusCodec::Decode(unsigned char* encoded, short* decoded, unsigned int len) { int max_size=960*6;//not sure about this one int error; dec = opus_decoder_create(48000, 1, &error);//decode to 48kHz mono int frame_size=opus_decode(dec, encoded, len, decoded, max_size, 0); } The argument "encoded" might be larger amounts of data, so I think I have to split it into frames. I am not sure how I could do that. And with being a beginner with Opus, I am really

Makefile needed for compiling the Opus Codec for Android

老子叫甜甜 提交于 2019-11-29 22:35:55
I am trying to compile the opus audio codec ( http://www.opus-codec.org/downloads/ ) for use in an Android application. I am using Android NDK (release 6) to compile my libraries. Up to now, the native C libraries that I had to compile for my application has been pretty straightforward and I have been able to base my Android.mk files in jni mostly on tutorials or other examples. However, the compilation of Opus looks to be somewhat more complex. The tar.gz archive contains a solution file for compiling the libraries for Windows and it also contains some Makefiles for a standard Unix

Makefile needed for compiling the Opus Codec for Android

冷暖自知 提交于 2019-11-28 19:17:49
问题 I am trying to compile the opus audio codec (http://www.opus-codec.org/downloads/) for use in an Android application. I am using Android NDK (release 6) to compile my libraries. Up to now, the native C libraries that I had to compile for my application has been pretty straightforward and I have been able to base my Android.mk files in jni mostly on tutorials or other examples. However, the compilation of Opus looks to be somewhat more complex. The tar.gz archive contains a solution file for