# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2016, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-02 22:11+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \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: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() ` or :meth:`Wave_write.close() ` " "method is called." msgstr "" #: ../Doc/library/wave.rst:47 ../Doc/library/wave.rst:168 msgid "Added support for unseekable files." msgstr "" #: ../Doc/library/wave.rst:52 msgid "A synonym for :func:`.open`, maintained for backwards compatibility." msgstr "" #: ../Doc/library/wave.rst:57 msgid "" "An error raised when something is impossible because it violates the WAV " "specification or hits an implementation deficiency." msgstr "" #: ../Doc/library/wave.rst:64 msgid "Wave_read Objects" msgstr "" #: ../Doc/library/wave.rst:66 msgid "" "Wave_read objects, as returned by :func:`.open`, have the following methods:" msgstr "" #: ../Doc/library/wave.rst:71 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:77 msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)." msgstr "" #: ../Doc/library/wave.rst:82 msgid "Returns sample width in bytes." msgstr "" #: ../Doc/library/wave.rst:87 msgid "Returns sampling frequency." msgstr "" #: ../Doc/library/wave.rst:92 msgid "Returns number of audio frames." msgstr "" #: ../Doc/library/wave.rst:97 msgid "Returns compression type (``'NONE'`` is the only supported type)." msgstr "" #: ../Doc/library/wave.rst:102 msgid "" "Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` " "parallels ``'NONE'``." msgstr "" #: ../Doc/library/wave.rst:108 msgid "" "Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, " "framerate, nframes, comptype, compname)``, equivalent to output of the :meth:" "`get\\*` methods." msgstr "" #: ../Doc/library/wave.rst:115 msgid "" "Reads and returns at most *n* frames of audio, as a :class:`bytes` object." msgstr "" #: ../Doc/library/wave.rst:120 msgid "Rewind the file pointer to the beginning of the audio stream." msgstr "" #: ../Doc/library/wave.rst:122 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:128 msgid "Returns ``None``." msgstr "" #: ../Doc/library/wave.rst:133 msgid "Raise an error." msgstr "" #: ../Doc/library/wave.rst:135 msgid "" "The following two methods define a term \"position\" which is compatible " "between them, and is otherwise implementation dependent." msgstr "" #: ../Doc/library/wave.rst:141 msgid "Set the file pointer to the specified position." msgstr "" #: ../Doc/library/wave.rst:146 msgid "Return current file pointer position." msgstr "" #: ../Doc/library/wave.rst:152 msgid "Wave_write Objects" msgstr "" #: ../Doc/library/wave.rst:154 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 "" #: ../Doc/library/wave.rst:166 msgid "" "Wave_write objects, as returned by :func:`.open`, have the following methods:" msgstr "" #: ../Doc/library/wave.rst:174 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 "" #: ../Doc/library/wave.rst:182 msgid "Set the number of channels." msgstr "" #: ../Doc/library/wave.rst:187 msgid "Set the sample width to *n* bytes." msgstr "" #: ../Doc/library/wave.rst:192 msgid "Set the frame rate to *n*." msgstr "" #: ../Doc/library/wave.rst:194 msgid "A non-integral input to this method is rounded to the nearest integer." msgstr "" #: ../Doc/library/wave.rst:201 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 "" #: ../Doc/library/wave.rst:208 msgid "" "Set the compression type and description. At the moment, only compression " "type ``NONE`` is supported, meaning no compression." msgstr "" #: ../Doc/library/wave.rst:214 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:221 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:227 msgid "Write audio frames, without correcting *nframes*." msgstr "" #: ../Doc/library/wave.rst:229 ../Doc/library/wave.rst:240 msgid "Any :term:`bytes-like object` is now accepted." msgstr "N'importe quel :term:`bytes-like object` est maintenant accepté." #: ../Doc/library/wave.rst:235 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 "" #: ../Doc/library/wave.rst:244 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 ""