百科全書
2026-03-28 17:59:14

什麼是G.711編解碼器?音頻優勢、技術特性和應用

G.711 是廣泛應用於 PSTN 和 VoIP 的經典語音編解碼器。掌握 A-law 與 μ-law 的工作原理、其音訊優勢、頻寬權衡、技術特性,以及在現代電話系統中的常見應用。

貝克電信

什麼是G.711編解碼器?音頻優勢、技術特性和應用

G.711是採用A-law或μ-law的窄帶PCM語音編解碼標準,編碼速率爲64 kbit/s。部署時既要匹配協商格式,也要計入打包間隔及協議頭,不能把編碼速率直接當作完整通話帶寬。

G.711如何運作?

G.711採用脈衝編碼調變(PCM)技術,基本流程簡單明瞭:語音經取樣後轉換為數位數值,再以8位元格式呈現。G.711不會讓訊號維持純線性形式,而是套用壓擴處理,也就是將輕聲與大聲音訊以適當方式映射,在有限位元數內提升實際語音表現效果。

A-law與μ-law正是在此環節發揮作用,這兩種對數壓擴方式能在G.711架構下高效編碼語音,讓編解碼器保持相對簡單的同時,仍能提供長期以來被視為標準電信等級的語音品質。

G.711能持續存在,並非因為它新潮,而是因為它可靠。在語音網路中,可靠往往比精巧更重要。

G.711編碼工作流程示意圖
概念示意圖,不代表產品規格或測試結果。

G.711的技術特性

G.711表面看似簡單,實際上有數項技術細節在實務專案中至關重要。

64 kb/s編解碼位元率

其標稱編解碼速率為64 kb/s,這是工程師對G.711最熟悉的數值之一,也是它與G.729等高壓縮編解碼器相互比較的首要依據。取捨關係十分明確:G.711具備更簡單的架構與更低的編解碼延遲,但會消耗更多頻寬。

8 kHz取樣時脈與8位元取樣格式

在RTP環境中,G.711對應8,000 Hz取樣頻率,PCMA與PCMU格式會在對數縮放後,以8位元取樣編碼音訊。這使其屬於窄頻而非寬頻編解碼器,也是它聽感接近傳統電信、而非現代全頻音訊的原因。

A-law與μ-law規格

A-law與μ-law並非可選的標示標籤,必須符合對端設備的規範,或由處理通話的網路單元正確轉換。規格不匹配可能導致協商失敗、不必要的轉碼,或是與電信業者中繼、閘道設備互通不良。

靜態RTP負載映射

標準RTP應用中,PCMU對應負載類型0,PCMA對應負載類型8。這項細節在SIP與RTP故障排除中十分重要,因為會直接出現在SDP請求與封包擷取記錄中。對於處理SIP中繼、SBC與PBX互連的工程師而言,熟悉這些數值能加快媒體協商異常的診斷效率。

常見20毫秒打包間隔

多數系統預設採用20毫秒打包間隔,對G.711而言,這代表每個封包承載160位元組的語音負載。這是IP電信領域廣泛使用的實務平衡設定,能讓封包額外負擔、抖動緩衝行為與延遲維持在多數企業部署適用的範圍內。

實際網路頻寬高於64 kb/s

編解碼器本身速率為64 kb/s,但實際IP傳輸會因語音負載外附加RTP、UDP、IP與第二層表頭而消耗更多頻寬。這是VoIP規劃中最常見的誤解之一:納入實際封包額外負擔後,G.711並非單純「每通通話64 kb/s」。

G.711與高壓縮編解碼器對比

G.711常與G.729、Opus等現代編解碼器比較,正確選擇與理論無關,更多取決於實際網路與商業目標。

  • 選擇G.711的情境:需要廣泛相容性、低編解碼延遲、簡易故障排除,且具備充足頻寬可穩定承載通話。

  • 選擇高壓縮編解碼器的情境:頻寬有限、行動網路或廣域網路環境不佳,或平臺可在不犧牲互通性的前提下支援進階最佳化。

在多數企業環境中,G.711仍為首選,主因是區域網路性能穩定、SIP設備皆已支援,且通話品質問題多來自封包遺失或抖動,而非編解碼器本身。換言之,若頻寬不是瓶頸,使用簡單且廣泛支援的編解碼器通常更符合營運效益。

G.711的常見應用場景

  • IP PBX與SIP電信: G.711廣泛用於企業IP電信,包括桌機電話、軟體電話、SIP伺服器、代管式PBX平臺與本地部署IP PBX系統。當使用者希望系統能「順暢相容」最多樣的SIP終端設備時,通常會啟用G.711。
  • SIP中繼與電信業者互連: 許多SIP中繼環境支援或偏好G.711,部分地區尤為常用PCMU。這使其成為企業電話系統與服務供應商網路互連的常用基礎編解碼器。
  • 類比、TDM與IP網路間的閘道: 媒體閘道在銜接傳統電信設備與IP語音平臺時,經常使用G.711,包括類比轉接器、FXS/FXO閘道、PRI閘道與PSTN-VoIP混合遷移專案。由於G.711與傳統電信行為高度契合,在混合網路中通常是最穩妥的媒體選擇。
  • 傳真直通場景: 雖T.38是多數IP傳真部署的專用標準,但G.711仍用於傳真直通場景。實務上,若T.38無法使用、未全程支援或在部分網路區段不穩定,部分部署會採用G.711直通模式。
  • 瀏覽器與WebRTC互通: G.711至今仍具實用性,因為PCMA與PCMU屬於WebRTC互通所需的基礎編解碼器組,適用於連接瀏覽器、軟體電話與傳統SIP基礎設施的語音系統。
  • 工業與營運通訊: 在工業電信、緊急對講、廣播系統、求助點、調度控制檯與閘道式語音系統中,若網路管理完善且穩定,G.711仍是實用選擇。此類專案中它的優勢不在新穎,而在跨多廠牌與設備類型的穩定性。

部署注意事項

選擇G.711很簡單,圍繞它做好系統設計纔是真正的重點。

頻寬規劃至關重要

由於G.711不屬於低位元率編解碼器,廣域網路規模與並行通話規劃必須謹慎執行。在狀態良好的區域網路中或許不明顯,但在分支鏈路、VPN通道或多站點語音網路中,其重要性會快速凸顯。

服務品質(QoS)仍不可或缺

再簡單的編解碼器也無法彌補網路品質不佳的問題。若存在抖動、延遲、封包遺失或佇列壅塞,G.711通話同樣會音質惡劣。工程師有時會歸咎於編解碼器,實際問題卻是QoS政策不足、路由不良或上行頻寬不足。

謹慎選擇A-law與μ-law

編解碼器協商問題通常與G.711本身無關,更多是使用錯誤區域規格或強制執行可避免的轉碼所致。國際SIP中繼與多國部署中,明確指定PCMA或PCMU有助維持媒體行為一致性。

避免不必要的轉碼

若通話路徑首尾設備皆支援G.711,維持媒體以G.711傳輸通常是最簡潔的設計。不必要的轉碼會增加複雜度、消耗DSP或CPU資源,並讓故障排除變得更繁瑣。

G.711單向20 ms打包示例:160字節音頻加40字節基礎IPv4/UDP/RTP頭,每秒50包,合計80 kbit/s。該數值未含以太網、VLAN、安全封裝、VPN、RTCP等開銷;還需考慮雙向及併發通話。

G.711編碼設備組成示意圖
概念示意圖,不代表產品規格或測試結果。

常見問題

G.711 A-law與μ-law有何差異?

兩者採用不同壓擴法則,μ-law多用於北美與日本,A-law多用於其他多數國家。選擇主要依據互通需求,而非使用者可感知的明顯音質差異。

G.711適用於VoIP嗎?

適用,尤其在頻寬充足且重視互通性的場景。它是SIP電話、PBX系統、閘道設備與電信業者互連中支援最廣泛的編解碼器之一。

G.711支援高畫質語音嗎?

無法像寬頻編解碼器那樣實現。G.711通常對應傳統窄頻電信,若需要更寬廣的音頻範圍,G.722或Opus等編解碼器通常是更好選擇。

為何已有新編解碼器,仍在使用G.711?

因為它架構簡單、支援廣泛、編解碼延遲低,且易於在混合電信系統中互通。在多數企業網路中,這些優勢仍勝過高壓縮帶來的效益。

相關產品與技術資源

相關技術閱讀

推薦產品
目錄
客服 電話
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .