gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

597 lines
48KB

  1. <!DOCTYPE html>
  2. <html lang="en" data-content_root="../">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta property="og:title" content="audioop — Manipulate raw audio data" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/library/audioop.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="The audioop module contains some useful operations on sound fragments. It operates on sound fragments consisting of signed integer samples 8, 16, 24 or 32 bits wide, stored in bytes-like objects. A..." />
  11. <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
  12. <meta property="og:image:alt" content="Python documentation" />
  13. <meta name="description" content="The audioop module contains some useful operations on sound fragments. It operates on sound fragments consisting of signed integer samples 8, 16, 24 or 32 bits wide, stored in bytes-like objects. A..." />
  14. <meta property="og:image:width" content="200" />
  15. <meta property="og:image:height" content="200" />
  16. <meta name="theme-color" content="#3776ab" />
  17. <title>audioop — Manipulate raw audio data &#8212; Python 3.12.3 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=bb723527" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=b20cc3f5" />
  21. <script src="../_static/documentation_options.js?v=2c828074"></script>
  22. <script src="../_static/doctools.js?v=888ff710"></script>
  23. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  24. <script src="../_static/sidebar.js"></script>
  25. <link rel="search" type="application/opensearchdescription+xml"
  26. title="Search within Python 3.12.3 documentation"
  27. href="../_static/opensearch.xml"/>
  28. <link rel="author" title="About these documents" href="../about.html" />
  29. <link rel="index" title="Index" href="../genindex.html" />
  30. <link rel="search" title="Search" href="../search.html" />
  31. <link rel="copyright" title="Copyright" href="../copyright.html" />
  32. <link rel="next" title="cgi — Common Gateway Interface support" href="cgi.html" />
  33. <link rel="prev" title="aifc — Read and write AIFF and AIFC files" href="aifc.html" />
  34. <link rel="canonical" href="https://docs.python.org/3/library/audioop.html" />
  35. <style>
  36. @media only screen {
  37. table.full-width-table {
  38. width: 100%;
  39. }
  40. }
  41. </style>
  42. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  43. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  44. <script type="text/javascript" src="../_static/copybutton.js"></script>
  45. <script type="text/javascript" src="../_static/menu.js"></script>
  46. <script type="text/javascript" src="../_static/search-focus.js"></script>
  47. <script type="text/javascript" src="../_static/themetoggle.js"></script>
  48. </head>
  49. <body>
  50. <div class="mobile-nav">
  51. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  52. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  53. <nav class="nav-content" role="navigation">
  54. <label for="menuToggler" class="toggler__label">
  55. <span></span>
  56. </label>
  57. <span class="nav-items-wrapper">
  58. <a href="https://www.python.org/" class="nav-logo">
  59. <img src="../_static/py.svg" alt="Python logo"/>
  60. </a>
  61. <span class="version_switcher_placeholder"></span>
  62. <form role="search" class="search" action="../search.html" method="get">
  63. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  64. <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
  65. </svg>
  66. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  67. <input type="submit" value="Go"/>
  68. </form>
  69. </span>
  70. </nav>
  71. <div class="menu-wrapper">
  72. <nav class="menu" role="navigation" aria-label="main navigation">
  73. <div class="language_switcher_placeholder"></div>
  74. <label class="theme-selector-label">
  75. Theme
  76. <select class="theme-selector" oninput="activateTheme(this.value)">
  77. <option value="auto" selected>Auto</option>
  78. <option value="light">Light</option>
  79. <option value="dark">Dark</option>
  80. </select>
  81. </label>
  82. <div>
  83. <h4>Previous topic</h4>
  84. <p class="topless"><a href="aifc.html"
  85. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">aifc</span></code> — Read and write AIFF and AIFC files</a></p>
  86. </div>
  87. <div>
  88. <h4>Next topic</h4>
  89. <p class="topless"><a href="cgi.html"
  90. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">cgi</span></code> — Common Gateway Interface support</a></p>
  91. </div>
  92. <div role="note" aria-label="source link">
  93. <h3>This Page</h3>
  94. <ul class="this-page-menu">
  95. <li><a href="../bugs.html">Report a Bug</a></li>
  96. <li>
  97. <a href="https://github.com/python/cpython/blob/main/Doc/library/audioop.rst"
  98. rel="nofollow">Show Source
  99. </a>
  100. </li>
  101. </ul>
  102. </div>
  103. </nav>
  104. </div>
  105. </div>
  106. <div class="related" role="navigation" aria-label="related navigation">
  107. <h3>Navigation</h3>
  108. <ul>
  109. <li class="right" style="margin-right: 10px">
  110. <a href="../genindex.html" title="General Index"
  111. accesskey="I">index</a></li>
  112. <li class="right" >
  113. <a href="../py-modindex.html" title="Python Module Index"
  114. >modules</a> |</li>
  115. <li class="right" >
  116. <a href="cgi.html" title="cgi — Common Gateway Interface support"
  117. accesskey="N">next</a> |</li>
  118. <li class="right" >
  119. <a href="aifc.html" title="aifc — Read and write AIFF and AIFC files"
  120. accesskey="P">previous</a> |</li>
  121. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  122. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  123. <li class="switchers">
  124. <div class="language_switcher_placeholder"></div>
  125. <div class="version_switcher_placeholder"></div>
  126. </li>
  127. <li>
  128. </li>
  129. <li id="cpython-language-and-version">
  130. <a href="../index.html">3.12.3 Documentation</a> &#187;
  131. </li>
  132. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  133. <li class="nav-item nav-item-2"><a href="superseded.html" accesskey="U">Superseded Modules</a> &#187;</li>
  134. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">audioop</span></code> — Manipulate raw audio data</a></li>
  135. <li class="right">
  136. <div class="inline-search" role="search">
  137. <form class="inline-search" action="../search.html" method="get">
  138. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  139. <input type="submit" value="Go" />
  140. </form>
  141. </div>
  142. |
  143. </li>
  144. <li class="right">
  145. <label class="theme-selector-label">
  146. Theme
  147. <select class="theme-selector" oninput="activateTheme(this.value)">
  148. <option value="auto" selected>Auto</option>
  149. <option value="light">Light</option>
  150. <option value="dark">Dark</option>
  151. </select>
  152. </label> |</li>
  153. </ul>
  154. </div>
  155. <div class="document">
  156. <div class="documentwrapper">
  157. <div class="bodywrapper">
  158. <div class="body" role="main">
  159. <section id="module-audioop">
  160. <span id="audioop-manipulate-raw-audio-data"></span><h1><a class="reference internal" href="#module-audioop" title="audioop: Manipulate raw audio data. (deprecated)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">audioop</span></code></a> — Manipulate raw audio data<a class="headerlink" href="#module-audioop" title="Link to this heading">¶</a></h1>
  161. <div class="deprecated-removed">
  162. <p><span class="versionmodified">Deprecated since version 3.11, will be removed in version 3.13: </span>The <a class="reference internal" href="#module-audioop" title="audioop: Manipulate raw audio data. (deprecated)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">audioop</span></code></a> module is deprecated
  163. (see <span class="target" id="index-0"></span><a class="pep reference external" href="https://peps.python.org/pep-0594/#audioop"><strong>PEP 594</strong></a> for details).</p>
  164. </div>
  165. <hr class="docutils" />
  166. <p>The <a class="reference internal" href="#module-audioop" title="audioop: Manipulate raw audio data. (deprecated)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">audioop</span></code></a> module contains some useful operations on sound fragments.
  167. It operates on sound fragments consisting of signed integer samples 8, 16, 24
  168. or 32 bits wide, stored in <a class="reference internal" href="../glossary.html#term-bytes-like-object"><span class="xref std std-term">bytes-like objects</span></a>. All scalar items are
  169. integers, unless specified otherwise.</p>
  170. <div class="versionchanged">
  171. <p><span class="versionmodified changed">Changed in version 3.4: </span>Support for 24-bit samples was added.
  172. All functions now accept any <a class="reference internal" href="../glossary.html#term-bytes-like-object"><span class="xref std std-term">bytes-like object</span></a>.
  173. String input now results in an immediate error.</p>
  174. </div>
  175. <p id="index-1">This module provides support for a-LAW, u-LAW and Intel/DVI ADPCM encodings.</p>
  176. <p>A few of the more complicated operations only take 16-bit samples, otherwise the
  177. sample size (in bytes) is always a parameter of the operation.</p>
  178. <p>The module defines the following variables and functions:</p>
  179. <dl class="py exception">
  180. <dt class="sig sig-object py" id="audioop.error">
  181. <em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">error</span></span><a class="headerlink" href="#audioop.error" title="Link to this definition">¶</a></dt>
  182. <dd><p>This exception is raised on all errors, such as unknown number of bytes per
  183. sample, etc.</p>
  184. </dd></dl>
  185. <dl class="py function">
  186. <dt class="sig sig-object py" id="audioop.add">
  187. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">add</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fragment2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.add" title="Link to this definition">¶</a></dt>
  188. <dd><p>Return a fragment which is the addition of the two samples passed as parameters.
  189. <em>width</em> is the sample width in bytes, either <code class="docutils literal notranslate"><span class="pre">1</span></code>, <code class="docutils literal notranslate"><span class="pre">2</span></code>, <code class="docutils literal notranslate"><span class="pre">3</span></code> or <code class="docutils literal notranslate"><span class="pre">4</span></code>. Both
  190. fragments should have the same length. Samples are truncated in case of overflow.</p>
  191. </dd></dl>
  192. <dl class="py function">
  193. <dt class="sig sig-object py" id="audioop.adpcm2lin">
  194. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">adpcm2lin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">adpcmfragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">state</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.adpcm2lin" title="Link to this definition">¶</a></dt>
  195. <dd><p>Decode an Intel/DVI ADPCM coded fragment to a linear fragment. See the
  196. description of <a class="reference internal" href="#audioop.lin2adpcm" title="audioop.lin2adpcm"><code class="xref py py-func docutils literal notranslate"><span class="pre">lin2adpcm()</span></code></a> for details on ADPCM coding. Return a tuple
  197. <code class="docutils literal notranslate"><span class="pre">(sample,</span> <span class="pre">newstate)</span></code> where the sample has the width specified in <em>width</em>.</p>
  198. </dd></dl>
  199. <dl class="py function">
  200. <dt class="sig sig-object py" id="audioop.alaw2lin">
  201. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">alaw2lin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.alaw2lin" title="Link to this definition">¶</a></dt>
  202. <dd><p>Convert sound fragments in a-LAW encoding to linearly encoded sound fragments.
  203. a-LAW encoding always uses 8 bits samples, so <em>width</em> refers only to the sample
  204. width of the output fragment here.</p>
  205. </dd></dl>
  206. <dl class="py function">
  207. <dt class="sig sig-object py" id="audioop.avg">
  208. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">avg</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.avg" title="Link to this definition">¶</a></dt>
  209. <dd><p>Return the average over all samples in the fragment.</p>
  210. </dd></dl>
  211. <dl class="py function">
  212. <dt class="sig sig-object py" id="audioop.avgpp">
  213. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">avgpp</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.avgpp" title="Link to this definition">¶</a></dt>
  214. <dd><p>Return the average peak-peak value over all samples in the fragment. No
  215. filtering is done, so the usefulness of this routine is questionable.</p>
  216. </dd></dl>
  217. <dl class="py function">
  218. <dt class="sig sig-object py" id="audioop.bias">
  219. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">bias</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">bias</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.bias" title="Link to this definition">¶</a></dt>
  220. <dd><p>Return a fragment that is the original fragment with a bias added to each
  221. sample. Samples wrap around in case of overflow.</p>
  222. </dd></dl>
  223. <dl class="py function">
  224. <dt class="sig sig-object py" id="audioop.byteswap">
  225. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">byteswap</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.byteswap" title="Link to this definition">¶</a></dt>
  226. <dd><p>“Byteswap” all samples in a fragment and returns the modified fragment.
  227. Converts big-endian samples to little-endian and vice versa.</p>
  228. <div class="versionadded">
  229. <p><span class="versionmodified added">New in version 3.4.</span></p>
  230. </div>
  231. </dd></dl>
  232. <dl class="py function">
  233. <dt class="sig sig-object py" id="audioop.cross">
  234. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">cross</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.cross" title="Link to this definition">¶</a></dt>
  235. <dd><p>Return the number of zero crossings in the fragment passed as an argument.</p>
  236. </dd></dl>
  237. <dl class="py function">
  238. <dt class="sig sig-object py" id="audioop.findfactor">
  239. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">findfactor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reference</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.findfactor" title="Link to this definition">¶</a></dt>
  240. <dd><p>Return a factor <em>F</em> such that <code class="docutils literal notranslate"><span class="pre">rms(add(fragment,</span> <span class="pre">mul(reference,</span> <span class="pre">-F)))</span></code> is
  241. minimal, i.e., return the factor with which you should multiply <em>reference</em> to
  242. make it match as well as possible to <em>fragment</em>. The fragments should both
  243. contain 2-byte samples.</p>
  244. <p>The time taken by this routine is proportional to <code class="docutils literal notranslate"><span class="pre">len(fragment)</span></code>.</p>
  245. </dd></dl>
  246. <dl class="py function">
  247. <dt class="sig sig-object py" id="audioop.findfit">
  248. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">findfit</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reference</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.findfit" title="Link to this definition">¶</a></dt>
  249. <dd><p>Try to match <em>reference</em> as well as possible to a portion of <em>fragment</em> (which
  250. should be the longer fragment). This is (conceptually) done by taking slices
  251. out of <em>fragment</em>, using <a class="reference internal" href="#audioop.findfactor" title="audioop.findfactor"><code class="xref py py-func docutils literal notranslate"><span class="pre">findfactor()</span></code></a> to compute the best match, and
  252. minimizing the result. The fragments should both contain 2-byte samples.
  253. Return a tuple <code class="docutils literal notranslate"><span class="pre">(offset,</span> <span class="pre">factor)</span></code> where <em>offset</em> is the (integer) offset into
  254. <em>fragment</em> where the optimal match started and <em>factor</em> is the (floating-point)
  255. factor as per <a class="reference internal" href="#audioop.findfactor" title="audioop.findfactor"><code class="xref py py-func docutils literal notranslate"><span class="pre">findfactor()</span></code></a>.</p>
  256. </dd></dl>
  257. <dl class="py function">
  258. <dt class="sig sig-object py" id="audioop.findmax">
  259. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">findmax</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">length</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.findmax" title="Link to this definition">¶</a></dt>
  260. <dd><p>Search <em>fragment</em> for a slice of length <em>length</em> samples (not bytes!) with
  261. maximum energy, i.e., return <em>i</em> for which <code class="docutils literal notranslate"><span class="pre">rms(fragment[i*2:(i+length)*2])</span></code>
  262. is maximal. The fragments should both contain 2-byte samples.</p>
  263. <p>The routine takes time proportional to <code class="docutils literal notranslate"><span class="pre">len(fragment)</span></code>.</p>
  264. </dd></dl>
  265. <dl class="py function">
  266. <dt class="sig sig-object py" id="audioop.getsample">
  267. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">getsample</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">index</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.getsample" title="Link to this definition">¶</a></dt>
  268. <dd><p>Return the value of sample <em>index</em> from the fragment.</p>
  269. </dd></dl>
  270. <dl class="py function">
  271. <dt class="sig sig-object py" id="audioop.lin2adpcm">
  272. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">lin2adpcm</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">state</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.lin2adpcm" title="Link to this definition">¶</a></dt>
  273. <dd><p>Convert samples to 4 bit Intel/DVI ADPCM encoding. ADPCM coding is an adaptive
  274. coding scheme, whereby each 4 bit number is the difference between one sample
  275. and the next, divided by a (varying) step. The Intel/DVI ADPCM algorithm has
  276. been selected for use by the IMA, so it may well become a standard.</p>
  277. <p><em>state</em> is a tuple containing the state of the coder. The coder returns a tuple
  278. <code class="docutils literal notranslate"><span class="pre">(adpcmfrag,</span> <span class="pre">newstate)</span></code>, and the <em>newstate</em> should be passed to the next call
  279. of <a class="reference internal" href="#audioop.lin2adpcm" title="audioop.lin2adpcm"><code class="xref py py-func docutils literal notranslate"><span class="pre">lin2adpcm()</span></code></a>. In the initial call, <code class="docutils literal notranslate"><span class="pre">None</span></code> can be passed as the state.
  280. <em>adpcmfrag</em> is the ADPCM coded fragment packed 2 4-bit values per byte.</p>
  281. </dd></dl>
  282. <dl class="py function">
  283. <dt class="sig sig-object py" id="audioop.lin2alaw">
  284. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">lin2alaw</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.lin2alaw" title="Link to this definition">¶</a></dt>
  285. <dd><p>Convert samples in the audio fragment to a-LAW encoding and return this as a
  286. bytes object. a-LAW is an audio encoding format whereby you get a dynamic
  287. range of about 13 bits using only 8 bit samples. It is used by the Sun audio
  288. hardware, among others.</p>
  289. </dd></dl>
  290. <dl class="py function">
  291. <dt class="sig sig-object py" id="audioop.lin2lin">
  292. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">lin2lin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">newwidth</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.lin2lin" title="Link to this definition">¶</a></dt>
  293. <dd><p>Convert samples between 1-, 2-, 3- and 4-byte formats.</p>
  294. <div class="admonition note">
  295. <p class="admonition-title">Note</p>
  296. <p>In some audio formats, such as .WAV files, 16, 24 and 32 bit samples are
  297. signed, but 8 bit samples are unsigned. So when converting to 8 bit wide
  298. samples for these formats, you need to also add 128 to the result:</p>
  299. <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="n">new_frames</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">lin2lin</span><span class="p">(</span><span class="n">frames</span><span class="p">,</span> <span class="n">old_width</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
  300. <span class="n">new_frames</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">bias</span><span class="p">(</span><span class="n">new_frames</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">128</span><span class="p">)</span>
  301. </pre></div>
  302. </div>
  303. <p>The same, in reverse, has to be applied when converting from 8 to 16, 24
  304. or 32 bit width samples.</p>
  305. </div>
  306. </dd></dl>
  307. <dl class="py function">
  308. <dt class="sig sig-object py" id="audioop.lin2ulaw">
  309. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">lin2ulaw</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.lin2ulaw" title="Link to this definition">¶</a></dt>
  310. <dd><p>Convert samples in the audio fragment to u-LAW encoding and return this as a
  311. bytes object. u-LAW is an audio encoding format whereby you get a dynamic
  312. range of about 14 bits using only 8 bit samples. It is used by the Sun audio
  313. hardware, among others.</p>
  314. </dd></dl>
  315. <dl class="py function">
  316. <dt class="sig sig-object py" id="audioop.max">
  317. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">max</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.max" title="Link to this definition">¶</a></dt>
  318. <dd><p>Return the maximum of the <em>absolute value</em> of all samples in a fragment.</p>
  319. </dd></dl>
  320. <dl class="py function">
  321. <dt class="sig sig-object py" id="audioop.maxpp">
  322. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">maxpp</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.maxpp" title="Link to this definition">¶</a></dt>
  323. <dd><p>Return the maximum peak-peak value in the sound fragment.</p>
  324. </dd></dl>
  325. <dl class="py function">
  326. <dt class="sig sig-object py" id="audioop.minmax">
  327. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">minmax</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.minmax" title="Link to this definition">¶</a></dt>
  328. <dd><p>Return a tuple consisting of the minimum and maximum values of all samples in
  329. the sound fragment.</p>
  330. </dd></dl>
  331. <dl class="py function">
  332. <dt class="sig sig-object py" id="audioop.mul">
  333. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">mul</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">factor</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.mul" title="Link to this definition">¶</a></dt>
  334. <dd><p>Return a fragment that has all samples in the original fragment multiplied by
  335. the floating-point value <em>factor</em>. Samples are truncated in case of overflow.</p>
  336. </dd></dl>
  337. <dl class="py function">
  338. <dt class="sig sig-object py" id="audioop.ratecv">
  339. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">ratecv</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nchannels</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">inrate</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">outrate</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">state</span></span></em><span class="optional">[</span>, <em class="sig-param"><span class="n"><span class="pre">weightA</span></span></em><span class="optional">[</span>, <em class="sig-param"><span class="n"><span class="pre">weightB</span></span></em><span class="optional">]</span><span class="optional">]</span><span class="sig-paren">)</span><a class="headerlink" href="#audioop.ratecv" title="Link to this definition">¶</a></dt>
  340. <dd><p>Convert the frame rate of the input fragment.</p>
  341. <p><em>state</em> is a tuple containing the state of the converter. The converter returns
  342. a tuple <code class="docutils literal notranslate"><span class="pre">(newfragment,</span> <span class="pre">newstate)</span></code>, and <em>newstate</em> should be passed to the next
  343. call of <a class="reference internal" href="#audioop.ratecv" title="audioop.ratecv"><code class="xref py py-func docutils literal notranslate"><span class="pre">ratecv()</span></code></a>. The initial call should pass <code class="docutils literal notranslate"><span class="pre">None</span></code> as the state.</p>
  344. <p>The <em>weightA</em> and <em>weightB</em> arguments are parameters for a simple digital filter
  345. and default to <code class="docutils literal notranslate"><span class="pre">1</span></code> and <code class="docutils literal notranslate"><span class="pre">0</span></code> respectively.</p>
  346. </dd></dl>
  347. <dl class="py function">
  348. <dt class="sig sig-object py" id="audioop.reverse">
  349. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">reverse</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.reverse" title="Link to this definition">¶</a></dt>
  350. <dd><p>Reverse the samples in a fragment and returns the modified fragment.</p>
  351. </dd></dl>
  352. <dl class="py function">
  353. <dt class="sig sig-object py" id="audioop.rms">
  354. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">rms</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.rms" title="Link to this definition">¶</a></dt>
  355. <dd><p>Return the root-mean-square of the fragment, i.e. <code class="docutils literal notranslate"><span class="pre">sqrt(sum(S_i^2)/n)</span></code>.</p>
  356. <p>This is a measure of the power in an audio signal.</p>
  357. </dd></dl>
  358. <dl class="py function">
  359. <dt class="sig sig-object py" id="audioop.tomono">
  360. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">tomono</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">lfactor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">rfactor</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.tomono" title="Link to this definition">¶</a></dt>
  361. <dd><p>Convert a stereo fragment to a mono fragment. The left channel is multiplied by
  362. <em>lfactor</em> and the right channel by <em>rfactor</em> before adding the two channels to
  363. give a mono signal.</p>
  364. </dd></dl>
  365. <dl class="py function">
  366. <dt class="sig sig-object py" id="audioop.tostereo">
  367. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">tostereo</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">lfactor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">rfactor</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.tostereo" title="Link to this definition">¶</a></dt>
  368. <dd><p>Generate a stereo fragment from a mono fragment. Each pair of samples in the
  369. stereo fragment are computed from the mono sample, whereby left channel samples
  370. are multiplied by <em>lfactor</em> and right channel samples by <em>rfactor</em>.</p>
  371. </dd></dl>
  372. <dl class="py function">
  373. <dt class="sig sig-object py" id="audioop.ulaw2lin">
  374. <span class="sig-prename descclassname"><span class="pre">audioop.</span></span><span class="sig-name descname"><span class="pre">ulaw2lin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">fragment</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#audioop.ulaw2lin" title="Link to this definition">¶</a></dt>
  375. <dd><p>Convert sound fragments in u-LAW encoding to linearly encoded sound fragments.
  376. u-LAW encoding always uses 8 bits samples, so <em>width</em> refers only to the sample
  377. width of the output fragment here.</p>
  378. </dd></dl>
  379. <p>Note that operations such as <a class="reference internal" href="#audioop.mul" title="audioop.mul"><code class="xref py py-func docutils literal notranslate"><span class="pre">mul()</span></code></a> or <a class="reference internal" href="#audioop.max" title="audioop.max"><code class="xref py py-func docutils literal notranslate"><span class="pre">max()</span></code></a> make no distinction
  380. between mono and stereo fragments, i.e. all samples are treated equal. If this
  381. is a problem the stereo fragment should be split into two mono fragments first
  382. and recombined later. Here is an example of how to do that:</p>
  383. <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">mul_stereo</span><span class="p">(</span><span class="n">sample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="n">lfactor</span><span class="p">,</span> <span class="n">rfactor</span><span class="p">):</span>
  384. <span class="n">lsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">tomono</span><span class="p">(</span><span class="n">sample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
  385. <span class="n">rsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">tomono</span><span class="p">(</span><span class="n">sample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
  386. <span class="n">lsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">mul</span><span class="p">(</span><span class="n">lsample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="n">lfactor</span><span class="p">)</span>
  387. <span class="n">rsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">mul</span><span class="p">(</span><span class="n">rsample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="n">rfactor</span><span class="p">)</span>
  388. <span class="n">lsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">tostereo</span><span class="p">(</span><span class="n">lsample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
  389. <span class="n">rsample</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">tostereo</span><span class="p">(</span><span class="n">rsample</span><span class="p">,</span> <span class="n">width</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
  390. <span class="k">return</span> <span class="n">audioop</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">lsample</span><span class="p">,</span> <span class="n">rsample</span><span class="p">,</span> <span class="n">width</span><span class="p">)</span>
  391. </pre></div>
  392. </div>
  393. <p>If you use the ADPCM coder to build network packets and you want your protocol
  394. to be stateless (i.e. to be able to tolerate packet loss) you should not only
  395. transmit the data but also the state. Note that you should send the <em>initial</em>
  396. state (the one you passed to <a class="reference internal" href="#audioop.lin2adpcm" title="audioop.lin2adpcm"><code class="xref py py-func docutils literal notranslate"><span class="pre">lin2adpcm()</span></code></a>) along to the decoder, not the
  397. final state (as returned by the coder). If you want to use
  398. <a class="reference internal" href="struct.html#struct.Struct" title="struct.Struct"><code class="xref py py-class docutils literal notranslate"><span class="pre">struct.Struct</span></code></a> to store the state in binary you can code the first
  399. element (the predicted value) in 16 bits and the second (the delta index) in 8.</p>
  400. <p>The ADPCM coders have never been tried against other ADPCM coders, only against
  401. themselves. It could well be that I misinterpreted the standards in which case
  402. they will not be interoperable with the respective standards.</p>
  403. <p>The <code class="xref py py-func docutils literal notranslate"><span class="pre">find*()</span></code> routines might look a bit funny at first sight. They are
  404. primarily meant to do echo cancellation. A reasonably fast way to do this is to
  405. pick the most energetic piece of the output sample, locate that in the input
  406. sample and subtract the whole output sample from the input sample:</p>
  407. <div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">echocancel</span><span class="p">(</span><span class="n">outputdata</span><span class="p">,</span> <span class="n">inputdata</span><span class="p">):</span>
  408. <span class="n">pos</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">findmax</span><span class="p">(</span><span class="n">outputdata</span><span class="p">,</span> <span class="mi">800</span><span class="p">)</span> <span class="c1"># one tenth second</span>
  409. <span class="n">out_test</span> <span class="o">=</span> <span class="n">outputdata</span><span class="p">[</span><span class="n">pos</span><span class="o">*</span><span class="mi">2</span><span class="p">:]</span>
  410. <span class="n">in_test</span> <span class="o">=</span> <span class="n">inputdata</span><span class="p">[</span><span class="n">pos</span><span class="o">*</span><span class="mi">2</span><span class="p">:]</span>
  411. <span class="n">ipos</span><span class="p">,</span> <span class="n">factor</span> <span class="o">=</span> <span class="n">audioop</span><span class="o">.</span><span class="n">findfit</span><span class="p">(</span><span class="n">in_test</span><span class="p">,</span> <span class="n">out_test</span><span class="p">)</span>
  412. <span class="c1"># Optional (for better cancellation):</span>
  413. <span class="c1"># factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],</span>
  414. <span class="c1"># out_test)</span>
  415. <span class="n">prefill</span> <span class="o">=</span> <span class="s1">&#39;</span><span class="se">\0</span><span class="s1">&#39;</span><span class="o">*</span><span class="p">(</span><span class="n">pos</span><span class="o">+</span><span class="n">ipos</span><span class="p">)</span><span class="o">*</span><span class="mi">2</span>
  416. <span class="n">postfill</span> <span class="o">=</span> <span class="s1">&#39;</span><span class="se">\0</span><span class="s1">&#39;</span><span class="o">*</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">inputdata</span><span class="p">)</span><span class="o">-</span><span class="nb">len</span><span class="p">(</span><span class="n">prefill</span><span class="p">)</span><span class="o">-</span><span class="nb">len</span><span class="p">(</span><span class="n">outputdata</span><span class="p">))</span>
  417. <span class="n">outputdata</span> <span class="o">=</span> <span class="n">prefill</span> <span class="o">+</span> <span class="n">audioop</span><span class="o">.</span><span class="n">mul</span><span class="p">(</span><span class="n">outputdata</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="o">-</span><span class="n">factor</span><span class="p">)</span> <span class="o">+</span> <span class="n">postfill</span>
  418. <span class="k">return</span> <span class="n">audioop</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">inputdata</span><span class="p">,</span> <span class="n">outputdata</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
  419. </pre></div>
  420. </div>
  421. </section>
  422. <div class="clearer"></div>
  423. </div>
  424. </div>
  425. </div>
  426. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  427. <div class="sphinxsidebarwrapper">
  428. <div>
  429. <h4>Previous topic</h4>
  430. <p class="topless"><a href="aifc.html"
  431. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">aifc</span></code> — Read and write AIFF and AIFC files</a></p>
  432. </div>
  433. <div>
  434. <h4>Next topic</h4>
  435. <p class="topless"><a href="cgi.html"
  436. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">cgi</span></code> — Common Gateway Interface support</a></p>
  437. </div>
  438. <div role="note" aria-label="source link">
  439. <h3>This Page</h3>
  440. <ul class="this-page-menu">
  441. <li><a href="../bugs.html">Report a Bug</a></li>
  442. <li>
  443. <a href="https://github.com/python/cpython/blob/main/Doc/library/audioop.rst"
  444. rel="nofollow">Show Source
  445. </a>
  446. </li>
  447. </ul>
  448. </div>
  449. </div>
  450. <div id="sidebarbutton" title="Collapse sidebar">
  451. <span>«</span>
  452. </div>
  453. </div>
  454. <div class="clearer"></div>
  455. </div>
  456. <div class="related" role="navigation" aria-label="related navigation">
  457. <h3>Navigation</h3>
  458. <ul>
  459. <li class="right" style="margin-right: 10px">
  460. <a href="../genindex.html" title="General Index"
  461. >index</a></li>
  462. <li class="right" >
  463. <a href="../py-modindex.html" title="Python Module Index"
  464. >modules</a> |</li>
  465. <li class="right" >
  466. <a href="cgi.html" title="cgi — Common Gateway Interface support"
  467. >next</a> |</li>
  468. <li class="right" >
  469. <a href="aifc.html" title="aifc — Read and write AIFF and AIFC files"
  470. >previous</a> |</li>
  471. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  472. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  473. <li class="switchers">
  474. <div class="language_switcher_placeholder"></div>
  475. <div class="version_switcher_placeholder"></div>
  476. </li>
  477. <li>
  478. </li>
  479. <li id="cpython-language-and-version">
  480. <a href="../index.html">3.12.3 Documentation</a> &#187;
  481. </li>
  482. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  483. <li class="nav-item nav-item-2"><a href="superseded.html" >Superseded Modules</a> &#187;</li>
  484. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">audioop</span></code> — Manipulate raw audio data</a></li>
  485. <li class="right">
  486. <div class="inline-search" role="search">
  487. <form class="inline-search" action="../search.html" method="get">
  488. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  489. <input type="submit" value="Go" />
  490. </form>
  491. </div>
  492. |
  493. </li>
  494. <li class="right">
  495. <label class="theme-selector-label">
  496. Theme
  497. <select class="theme-selector" oninput="activateTheme(this.value)">
  498. <option value="auto" selected>Auto</option>
  499. <option value="light">Light</option>
  500. <option value="dark">Dark</option>
  501. </select>
  502. </label> |</li>
  503. </ul>
  504. </div>
  505. <div class="footer">
  506. &copy;
  507. <a href="../copyright.html">
  508. Copyright
  509. </a>
  510. 2001-2024, Python Software Foundation.
  511. <br />
  512. This page is licensed under the Python Software Foundation License Version 2.
  513. <br />
  514. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  515. <br />
  516. See <a href="/license.html">History and License</a> for more information.<br />
  517. <br />
  518. The Python Software Foundation is a non-profit corporation.
  519. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  520. <br />
  521. <br />
  522. Last updated on Apr 09, 2024 (13:47 UTC).
  523. <a href="/bugs.html">Found a bug</a>?
  524. <br />
  525. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  526. </div>
  527. </body>
  528. </html>
上海开阖软件有限公司 沪ICP备12045867号-1