音頻 (一) : 音頻基礎知識

前言:沒搜到Speex相關的中文資料,所以想將Speex的英文手冊中會用到的部分翻譯出來。Speex官網:http://speex.org/ 可以再Documentation下找到PDF版或HTML OL版的英文手冊。每段我都會付上英文原段落,可能會由于英文技能的匱乏或語音解碼領域的不熟悉會有翻譯錯誤,也望各位發現后能夠不吝賜教,大家共同進步。

1.1 關于此文檔
簡介:

The Speex codec (http://www.speex.org/) exists because there is a need for a speech codec that is open-source and free from software patent royalties. These are essential conditions for being usable in any open-source software. In essence,Speex is to speech what Vorbis is to audio/music. Unlike many other speech codecs, Speex is not designed for mobile phones but rather for packet networks and voice over IP (VoIP) applications. File-based compression is of course also supported.

由于語音對話編解碼需要一個免費的開源軟件,所以誕生了Speex庫,可以在任何開源軟件中使用。實際上,Speex對于語音對話來講,相當于Vorbis[一種可將聲音來源加以壓縮的編碼軟件,開放源碼且免版權]對于音頻/音樂。和大多數語音編解碼庫不一樣的是,Speex不是為移動電話而設計的,而是為分組網絡的VOIP(Voice over IP)應用程序,同時支持基于文件的壓縮。

The Speex codec is designed to be very flexible and support a wide range of speech quality and bit-rate. Support for very good quality speech also means that Speex can encode wideband speech (16 kHz sampling rate) in addition to narrowband speech (telephone quality, 8 kHz sampling rate).

Speex編解碼庫的設計非常靈活,支持廣泛的語音質量和比特率。良好的語音質量支持意味著除了窄帶語音( 電話質量,8kHz采樣率)外還可以對寬帶語音( 電話質量,16kHz采樣率)進行編解碼。

Designing for VoIP instead of mobile phones means that Speex is robust to lost packets, but not to corrupted ones. This is based on the assumption that in VoIP, packets either arrive unaltered or don’t arrive at all. Because Speex is targeted at a wide range of devices, it has modest (adjustable) complexity and a small memory footprint.

Speex被設計用于VoIP而不是移動電話,意味著Speex對于丟包能夠妥善處理,不會有損壞數據。這在VOIP里是基于這樣的假設,數據包要么不被改變的到達,要么不會到達。Speex針對于大多數的設備,因此它擁有適中(可調整)的復雜性和較小內存占用。

All the design goals led to the choice of CELP as the encoding technique. One of the main reasons is that CELP has long proved that it could work reliably and scale well to both low bit-rates (e.g. DoD CELP @ 4.8 kbps) and high bit-rates (e.g.G.728 @ 16 kbps).

所有這些設計的目的是為了引入碼激勵線性預測(CELP)編碼技術,因為長期實踐表明它對于低比特率(如DoD CELP@ 4.8kbps)和高比特率(如G.728 @ 16kbps)的工作性能良好,可靠性高。

1.1 獲得幫助
As for many open source projects, there are many ways to get help with Speex. These include:
? This manual
? Other documentation on the Speex website (http://www.speex.org/)
? Mailing list: Discuss any Speex-related topic on speex-dev@xiph.org (not just for developers)
? IRC: The main channel is #speex on irc.freenode.net. Note that due to time differences, it may take a while to get someone, so please be patient.
? Email the author privately at jean-marc.valin@usherbrooke.ca only for private/delicate topics you do not wish to discuss publically.

類似于大多數開源項目,Speex也可以能過多種獲得幫助的路徑,包括:

l 本手冊

l Speex官方站點(http://www.speex.org/ )的其他文檔

l 郵件列表:討論Speex相關發送至 speex-dev@xiph.org (不是僅限于開發者)

l IRC:通過irc.freenode.net Speex頻道獲取,可能需要耐心等待一段時間

l 如果不想公開討論一些主題,可Email作者jean-marc.valin@usherbrooke.ca

Before asking for help (mailing list or IRC), it is important to first read this manual (OK, so if you made it here it’s already a good sign). It is generally considered rude to ask on a mailing list about topics that are clearly detailed in the documentation. On the other hand, it’s perfectly OK (and encouraged) to ask for clarifications about something covered in the manual. This manual does not (yet) cover everything about Speex, so everyone is encouraged to ask questions, send comments, feature requests, or just let us know how Speex is being used.

在尋求幫助前(郵件列表或IRC),最好先仔細閱讀本手冊(呵呵,看到這里說明你已經有一個不錯的開始),如果文檔中介紹的很詳細的問題你仍然去Email多不好。當然,本手冊也不可能囊括關于Speex所有的知識點,所以也希望大家多提問題和見解、以及需要改進或增加的功能,或者是僅僅讓我們知道您在使用Speex。

Here are some additional guidelines related to the mailing list. Before reporting bugs in Speex to the list, it is strongly recommended (if possible) to first test whether these bugs can be reproduced using the speexenc and speexdec (see Section 4)
command-line utilities. Bugs reported based on 3rd party code are both harder to find and far too often caused by errors that have nothing to do with Speex.

在發送報告Bugs的郵件時,也對大家有些額外的要求,建議(如果可能)先使用Speexenc和Speexdec(見第4節)命令行工具測試能否使Bugs再現,很多報告的Bug都由第三方的代碼引起而難以發現,造成的錯誤往往不關Speex的事。

1.2 關于此文檔
This document is divided in the following way. Section 2 describes the different Speex features and defines many basic terms that are used throughout this manual. Section 4 documents the standard command-line tools provided in the Speex distribution. Section 5 includes detailed instructions about programming using the libspeex API. Section 7 has some information related to Speex and standards.

文檔分為幾部分,第2節介紹Speex的特性以及一些文檔中用到的基本術語。第4節是關于Speex提供的標準命令行工具。第5節是使用libspeex API進行編程的詳細說明。第7節是一些關于Speex相關標準的信息。

The three last sections describe the algorithms used in Speex. These sections require signal processing knowledge, but are not required for merely using Speex. They are intended for people who want to understand how Speex really works and/or want to do research based on Speex. Section 8 explains the general idea behind CELP, while sections 9 and 10 are specific to Speex.

最后三節介紹了Speex使用的算法。這部分需要信號處理相關知識,但這是對于那些想了解Speex的真正工作原理或基于Speex進行研究的人,如果僅僅是使用Speex庫則不是必需的。第8節大概介紹了CELP(碼激勵線性預測)編碼,9和10節是關于Speex的一些具體介紹。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 229,517評論 6 539
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 99,087評論 3 423
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 177,521評論 0 382
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,493評論 1 316
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,207評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,603評論 1 325
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,624評論 3 444
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,813評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,364評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 41,110評論 3 356
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,305評論 1 371
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,874評論 5 362
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,532評論 3 348
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,953評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,209評論 1 291
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,033評論 3 396
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,268評論 2 375

推薦閱讀更多精彩內容