1
0
Fork 0
python-docs-fr/library/wave.po

282 lines
8.3 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2016-10-30 09:46:26 +00:00
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2018-06-28 13:32:56 +00:00
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
2017-08-09 22:23:54 +00:00
"PO-Revision-Date: 2017-08-10 00:54+0200\n"
2017-08-11 17:15:07 +00:00
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: \n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
2017-08-09 22:23:54 +00:00
"X-Generator: Poedit 1.8.11\n"
2016-10-30 09:46:26 +00:00
#: ../Doc/library/wave.rst:2
msgid ":mod:`wave` --- Read and write WAV files"
msgstr ""
#: ../Doc/library/wave.rst:10
msgid "**Source code:** :source:`Lib/wave.py`"
msgstr "**Code source :** :source:`Lib/wave.py`"
#: ../Doc/library/wave.rst:14
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:17
msgid "The :mod:`wave` module defines the following function and exception:"
msgstr ""
#: ../Doc/library/wave.rst:22
msgid ""
"If *file* is a string, open the file by that name, otherwise treat it as a "
"file-like object. *mode* can be:"
msgstr ""
#: ../Doc/library/wave.rst:26
msgid "``'rb'``"
msgstr "``'rb'``"
#: ../Doc/library/wave.rst:26
msgid "Read only mode."
msgstr ""
#: ../Doc/library/wave.rst:29
msgid "``'wb'``"
msgstr "``'wb'``"
#: ../Doc/library/wave.rst:29
msgid "Write only mode."
msgstr ""
#: ../Doc/library/wave.rst:31
msgid "Note that it does not allow read/write WAV files."
msgstr ""
#: ../Doc/library/wave.rst:33
msgid ""
"A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of "
"``'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*."
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:42
msgid ""
"The :func:`.open` function may be used in a :keyword:`with` statement. When "
"the :keyword:`with` block completes, the :meth:`Wave_read.close() <wave."
"Wave_read.close>` or :meth:`Wave_write.close() <wave.Wave_write.close()>` "
"method is called."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:47 ../Doc/library/wave.rst:170
2016-10-30 09:46:26 +00:00
msgid "Added support for unseekable files."
msgstr ""
#: ../Doc/library/wave.rst:52
msgid "A synonym for :func:`.open`, maintained for backwards compatibility."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:59
2016-10-30 09:46:26 +00:00
msgid ""
"An error raised when something is impossible because it violates the WAV "
"specification or hits an implementation deficiency."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:66
2016-10-30 09:46:26 +00:00
msgid "Wave_read Objects"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:68
2016-10-30 09:46:26 +00:00
msgid ""
"Wave_read objects, as returned by :func:`.open`, have the following methods:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:73
2016-10-30 09:46:26 +00:00
msgid ""
"Close the stream if it was opened by :mod:`wave`, and make the instance "
"unusable. This is called automatically on object collection."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:79
2016-10-30 09:46:26 +00:00
msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:84
2016-10-30 09:46:26 +00:00
msgid "Returns sample width in bytes."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:89
2016-10-30 09:46:26 +00:00
msgid "Returns sampling frequency."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:94
2016-10-30 09:46:26 +00:00
msgid "Returns number of audio frames."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:99
2016-10-30 09:46:26 +00:00
msgid "Returns compression type (``'NONE'`` is the only supported type)."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:104
2016-10-30 09:46:26 +00:00
msgid ""
"Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` "
"parallels ``'NONE'``."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:110
2016-10-30 09:46:26 +00:00
msgid ""
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
"`get\\*` methods."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:117
2016-10-30 09:46:26 +00:00
msgid ""
"Reads and returns at most *n* frames of audio, as a :class:`bytes` object."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:122
2016-10-30 09:46:26 +00:00
msgid "Rewind the file pointer to the beginning of the audio stream."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:124
2016-10-30 09:46:26 +00:00
msgid ""
"The following two methods are defined for compatibility with the :mod:`aifc` "
"module, and don't do anything interesting."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:130
2016-10-30 09:46:26 +00:00
msgid "Returns ``None``."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:135
2016-10-30 09:46:26 +00:00
msgid "Raise an error."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:137
2016-10-30 09:46:26 +00:00
msgid ""
"The following two methods define a term \"position\" which is compatible "
"between them, and is otherwise implementation dependent."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:143
2016-10-30 09:46:26 +00:00
msgid "Set the file pointer to the specified position."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:148
2016-10-30 09:46:26 +00:00
msgid "Return current file pointer position."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:154
2016-10-30 09:46:26 +00:00
msgid "Wave_write Objects"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:156
2016-10-30 09:46:26 +00:00
msgid ""
"For seekable output streams, the ``wave`` header will automatically be "
"updated to reflect the number of frames actually written. For unseekable "
"streams, the *nframes* value must be accurate when the first frame data is "
"written. An accurate *nframes* value can be achieved either by calling :"
"meth:`~Wave_write.setnframes` or :meth:`~Wave_write.setparams` with the "
"number of frames that will be written before :meth:`~Wave_write.close` is "
"called and then using :meth:`~Wave_write.writeframesraw` to write the frame "
"data, or by calling :meth:`~Wave_write.writeframes` with all of the frame "
"data to be written. In the latter case :meth:`~Wave_write.writeframes` will "
"calculate the number of frames in the data and set *nframes* accordingly "
"before writing the frame data."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:168
2016-10-30 09:46:26 +00:00
msgid ""
"Wave_write objects, as returned by :func:`.open`, have the following methods:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:176
2016-10-30 09:46:26 +00:00
msgid ""
"Make sure *nframes* is correct, and close the file if it was opened by :mod:"
"`wave`. This method is called upon object collection. It will raise an "
"exception if the output stream is not seekable and *nframes* does not match "
"the number of frames actually written."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:184
2016-10-30 09:46:26 +00:00
msgid "Set the number of channels."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:189
2016-10-30 09:46:26 +00:00
msgid "Set the sample width to *n* bytes."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:194
2016-10-30 09:46:26 +00:00
msgid "Set the frame rate to *n*."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:196
2016-10-30 09:46:26 +00:00
msgid "A non-integral input to this method is rounded to the nearest integer."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:203
2016-10-30 09:46:26 +00:00
msgid ""
"Set the number of frames to *n*. This will be changed later if the number "
"of frames actually written is different (this update attempt will raise an "
"error if the output stream is not seekable)."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:210
2016-10-30 09:46:26 +00:00
msgid ""
"Set the compression type and description. At the moment, only compression "
"type ``NONE`` is supported, meaning no compression."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:216
2016-10-30 09:46:26 +00:00
msgid ""
"The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, "
"compname)``, with values valid for the :meth:`set\\*` methods. Sets all "
"parameters."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:223
2016-10-30 09:46:26 +00:00
msgid ""
"Return current position in the file, with the same disclaimer for the :meth:"
"`Wave_read.tell` and :meth:`Wave_read.setpos` methods."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:229
2016-10-30 09:46:26 +00:00
msgid "Write audio frames, without correcting *nframes*."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:231 ../Doc/library/wave.rst:242
2016-10-30 09:46:26 +00:00
msgid "Any :term:`bytes-like object` is now accepted."
msgstr "N'importe quel :term:`bytes-like object` est maintenant accepté."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:237
2016-10-30 09:46:26 +00:00
msgid ""
"Write audio frames and make sure *nframes* is correct. It will raise an "
"error if the output stream is not seekable and the total number of frames "
"that have been written after *data* has been written does not match the "
"previously set value for *nframes*."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/wave.rst:246
2016-10-30 09:46:26 +00:00
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 ""