forked from AFPy/python-docs-fr
239 lines
6.3 KiB
Plaintext
239 lines
6.3 KiB
Plaintext
|
# SOME DESCRIPTIVE TITLE.
|
||
|
# Copyright (C) 1990-2016, Python Software Foundation
|
||
|
# This file is distributed under the same license as the Python package.
|
||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||
|
#
|
||
|
#, fuzzy
|
||
|
msgid ""
|
||
|
msgstr ""
|
||
|
"Project-Id-Version: Python 2.7\n"
|
||
|
"Report-Msgid-Bugs-To: \n"
|
||
|
"POT-Creation-Date: 2016-10-30 10:44+0100\n"
|
||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||
|
"MIME-Version: 1.0\n"
|
||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||
|
"Content-Transfer-Encoding: 8bit\n"
|
||
|
|
||
|
#: ../Doc/library/wave.rst:2
|
||
|
msgid ":mod:`wave` --- Read and write WAV files"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:9
|
||
|
msgid "**Source code:** :source:`Lib/wave.py`"
|
||
|
msgstr "**Code source :** :source:`Lib/wave.py`"
|
||
|
|
||
|
#: ../Doc/library/wave.rst:13
|
||
|
msgid ""
|
||
|
"The :mod:`wave` module provides a convenient interface to the WAV sound "
|
||
|
"format. It does not support compression/decompression, but it does support "
|
||
|
"mono/stereo."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:16
|
||
|
msgid "The :mod:`wave` module defines the following function and exception:"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:21
|
||
|
msgid ""
|
||
|
"If *file* is a string, open the file by that name, otherwise treat it as a "
|
||
|
"seekable file-like object. *mode* can be any of"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:25
|
||
|
msgid "``'r'``, ``'rb'``"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:25
|
||
|
msgid "Read only mode."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:28
|
||
|
msgid "``'w'``, ``'wb'``"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:28
|
||
|
msgid "Write only mode."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:30
|
||
|
msgid "Note that it does not allow read/write WAV files."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:32
|
||
|
msgid ""
|
||
|
"A *mode* of ``'r'`` or ``'rb'`` returns a :class:`Wave_read` object, while a "
|
||
|
"*mode* of ``'w'`` or ``'wb'`` returns a :class:`Wave_write` object. If "
|
||
|
"*mode* is omitted and a file-like object is passed as *file*, ``file.mode`` "
|
||
|
"is used as the default value for *mode* (the ``'b'`` flag is still added if "
|
||
|
"necessary)."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:38
|
||
|
msgid ""
|
||
|
"If you pass in a file-like object, the wave object will not close it when "
|
||
|
"its :meth:`close` method is called; it is the caller's responsibility to "
|
||
|
"close the file object."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:45
|
||
|
msgid "A synonym for :func:`.open`, maintained for backwards compatibility."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:50
|
||
|
msgid ""
|
||
|
"An error raised when something is impossible because it violates the WAV "
|
||
|
"specification or hits an implementation deficiency."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:57
|
||
|
msgid "Wave_read Objects"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:59
|
||
|
msgid ""
|
||
|
"Wave_read objects, as returned by :func:`.open`, have the following methods:"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:64
|
||
|
msgid ""
|
||
|
"Close the stream if it was opened by :mod:`wave`, and make the instance "
|
||
|
"unusable. This is called automatically on object collection."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:70
|
||
|
msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:75
|
||
|
msgid "Returns sample width in bytes."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:80
|
||
|
msgid "Returns sampling frequency."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:85
|
||
|
msgid "Returns number of audio frames."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:90
|
||
|
msgid "Returns compression type (``'NONE'`` is the only supported type)."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:95
|
||
|
msgid ""
|
||
|
"Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` "
|
||
|
"parallels ``'NONE'``."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:101
|
||
|
msgid ""
|
||
|
"Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype, "
|
||
|
"compname)``, equivalent to output of the :meth:`get\\*` methods."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:107
|
||
|
msgid "Reads and returns at most *n* frames of audio, as a string of bytes."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:112
|
||
|
msgid "Rewind the file pointer to the beginning of the audio stream."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:114
|
||
|
msgid ""
|
||
|
"The following two methods are defined for compatibility with the :mod:`aifc` "
|
||
|
"module, and don't do anything interesting."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:120
|
||
|
msgid "Returns ``None``."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:125
|
||
|
msgid "Raise an error."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:127
|
||
|
msgid ""
|
||
|
"The following two methods define a term \"position\" which is compatible "
|
||
|
"between them, and is otherwise implementation dependent."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:133
|
||
|
msgid "Set the file pointer to the specified position."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:138
|
||
|
msgid "Return current file pointer position."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:144
|
||
|
msgid "Wave_write Objects"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:146
|
||
|
msgid ""
|
||
|
"Wave_write objects, as returned by :func:`.open`, have the following methods:"
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:151
|
||
|
msgid ""
|
||
|
"Make sure *nframes* is correct, and close the file if it was opened by :mod:"
|
||
|
"`wave`. This method is called upon object collection."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:157
|
||
|
msgid "Set the number of channels."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:162
|
||
|
msgid "Set the sample width to *n* bytes."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:167
|
||
|
msgid "Set the frame rate to *n*."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:172
|
||
|
msgid ""
|
||
|
"Set the number of frames to *n*. This will be changed later if more frames "
|
||
|
"are written."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:178
|
||
|
msgid ""
|
||
|
"Set the compression type and description. At the moment, only compression "
|
||
|
"type ``NONE`` is supported, meaning no compression."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:184
|
||
|
msgid ""
|
||
|
"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, "
|
||
|
"compname)``, with values valid for the :meth:`set\\*` methods. Sets all "
|
||
|
"parameters."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:191
|
||
|
msgid ""
|
||
|
"Return current position in the file, with the same disclaimer for the :meth:"
|
||
|
"`Wave_read.tell` and :meth:`Wave_read.setpos` methods."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:197
|
||
|
msgid "Write audio frames, without correcting *nframes*."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:202
|
||
|
msgid "Write audio frames and make sure *nframes* is correct."
|
||
|
msgstr ""
|
||
|
|
||
|
#: ../Doc/library/wave.rst:205
|
||
|
msgid ""
|
||
|
"Note that it is invalid to set any parameters after calling :meth:"
|
||
|
"`writeframes` or :meth:`writeframesraw`, and any attempt to do so will "
|
||
|
"raise :exc:`wave.Error`."
|
||
|
msgstr ""
|