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

356 lines
14 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-15 22:33+0100\n"
2019-06-02 13:23:58 +00:00
"PO-Revision-Date: 2019-05-31 15:21+0200\n"
2017-08-11 17:15:07 +00:00
"Last-Translator: Julien Palard <julien@palard.fr>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\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"
2019-06-02 13:23:58 +00:00
"X-Generator: Poedit 2.0.6\n"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`wave` --- Read and write WAV files"
2019-06-02 13:23:58 +00:00
msgstr ":mod:`wave` --- Lecture et écriture des fichiers WAV"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:10
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/wave.py`"
msgstr "**Code source :** :source:`Lib/wave.py`"
#: library/wave.rst:14
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`wave` module provides a convenient interface to the WAV sound "
"format. Only files using ``WAVE_FORMAT_PCM`` are supported. Note that this "
"does not include files using ``WAVE_FORMAT_EXTENSIBLE`` even if the "
"subformat is PCM."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-06-02 13:23:58 +00:00
"Le module :mod:`wave` fournit une interface pratique pour le format de son "
"WAV. Il ne gère pas la compression ni la décompression, mais gère le mono et "
"le stéréo."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:18
2016-10-30 09:46:26 +00:00
msgid "The :mod:`wave` module defines the following function and exception:"
msgstr "Le module :mod:`wave` définit la fonction et l'exception suivante :"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:23
2016-10-30 09:46:26 +00:00
msgid ""
"If *file* is a string, open the file by that name, otherwise treat it as a "
"file-like object. *mode* can be:"
msgstr ""
2019-06-02 13:23:58 +00:00
"Si *file* est une chaîne de caractères, ouvre le fichier sous ce nom, sinon, "
"il est traité comme un objet de type fichier. *mode* peut être :"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:27
2016-10-30 09:46:26 +00:00
msgid "``'rb'``"
msgstr "``'rb'``"
#: library/wave.rst:27
2016-10-30 09:46:26 +00:00
msgid "Read only mode."
2019-06-02 13:23:58 +00:00
msgstr "Mode lecture seule."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:30
2016-10-30 09:46:26 +00:00
msgid "``'wb'``"
msgstr "``'wb'``"
#: library/wave.rst:30
2016-10-30 09:46:26 +00:00
msgid "Write only mode."
2019-06-02 13:23:58 +00:00
msgstr "Mode écriture seule."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:32
2016-10-30 09:46:26 +00:00
msgid "Note that it does not allow read/write WAV files."
msgstr ""
2019-06-02 13:23:58 +00:00
"Notez que ce module ne permet pas de manipuler des fichiers WAV en lecture/"
"écriture."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:34
2016-10-30 09:46:26 +00:00
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 ""
2019-06-02 13:23:58 +00:00
"Un *mode* ``'rb'`` renvoie un objet :class:`Wave_read`, alors qu'un *mode* "
"``'wb'`` renvoie un objet :class:`Wave_write`. Si *mode* est omis et qu'un "
"objet de type fichier est donné au paramètre *file*, ``file.mode`` est "
"utilisé comme valeur par défaut pour *mode*."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:39
2016-10-30 09:46:26 +00:00
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 ""
2019-06-02 13:23:58 +00:00
"Si vous donnez un objet de type fichier, l'objet *wave* ne le ferme pas "
"lorsque sa méthode :meth:`close` est appelée car c'est l'appelant qui est "
"responsable de la fermeture."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:43
2016-10-30 09:46:26 +00:00
msgid ""
"The :func:`.open` function may be used in a :keyword:`with` statement. When "
2018-12-24 13:20:55 +00:00
"the :keyword:`!with` block completes, the :meth:`Wave_read.close() <wave."
2016-10-30 09:46:26 +00:00
"Wave_read.close>` or :meth:`Wave_write.close() <wave.Wave_write.close()>` "
"method is called."
msgstr ""
2019-06-02 13:23:58 +00:00
"La fonction :func:`.open` peut être utilisée dans une instruction :keyword:"
"`with`. Lorsque le :keyword:`!with` est terminé, la méthode :meth:`Wave_read."
"close() <wave.Wave_read.close>` ou la méthode :meth:`Wave_write.close() "
"<wave.Wave_write.close()>` est appelée."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:164
2016-10-30 09:46:26 +00:00
msgid "Added support for unseekable files."
2019-06-02 13:23:58 +00:00
msgstr "Ajout de la gestion des fichiers non navigables."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:53
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 ""
2019-06-02 13:23:58 +00:00
"Une erreur est levée lorsque quelque chose est impossible car elle enfreint "
"la spécification WAV ou rencontre un problème d'implémentation."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:60
2016-10-30 09:46:26 +00:00
msgid "Wave_read Objects"
2019-06-02 13:23:58 +00:00
msgstr "Objets Wave_read"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:62
2016-10-30 09:46:26 +00:00
msgid ""
"Wave_read objects, as returned by :func:`.open`, have the following methods:"
msgstr ""
2019-06-02 13:23:58 +00:00
"Les objets Wave_read, tels qu'ils sont renvoyés par :func:`.open`, ont les "
"méthodes suivantes :"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:67
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 ""
2019-06-02 13:23:58 +00:00
"Ferme le flux s'il a été ouvert par :mod:`wave` et rend l'instance "
"inutilisable. Ceci est appelé automatiquement lorsque l'objet est détruit ."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:73
2016-10-30 09:46:26 +00:00
msgid "Returns number of audio channels (``1`` for mono, ``2`` for stereo)."
msgstr ""
2019-06-02 13:23:58 +00:00
"Renvoie le nombre de canaux audio (``1`` pour mono, ``2`` pour stéréo)."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:78
2016-10-30 09:46:26 +00:00
msgid "Returns sample width in bytes."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie la largeur de l'échantillon en octets."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:83
2016-10-30 09:46:26 +00:00
msgid "Returns sampling frequency."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie la fréquence d'échantillonnage."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:88
2016-10-30 09:46:26 +00:00
msgid "Returns number of audio frames."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie le nombre de trames audio."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:93
2016-10-30 09:46:26 +00:00
msgid "Returns compression type (``'NONE'`` is the only supported type)."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie le type de compression (``'NONE'`` est le seul type géré)."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:98
2016-10-30 09:46:26 +00:00
msgid ""
"Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'`` "
"parallels ``'NONE'``."
msgstr ""
2019-06-02 13:23:58 +00:00
"Version compréhensible de :meth:`getcomptype`. Généralement, ``'not "
"compressed'`` équivaut à ``'NONE'``."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:104
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 ""
2019-06-02 13:23:58 +00:00
"Renvoie une :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
"framerate, nframes, comptype, compname)``, équivalent à la sortie des "
"méthodes :meth:`get\\*`."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:111
2016-10-30 09:46:26 +00:00
msgid ""
"Reads and returns at most *n* frames of audio, as a :class:`bytes` object."
msgstr ""
2019-06-02 13:23:58 +00:00
"Lit et renvoie au plus *n* trames audio, sous forme d'objet :class:`bytes`."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:116
2016-10-30 09:46:26 +00:00
msgid "Rewind the file pointer to the beginning of the audio stream."
2019-06-02 13:23:58 +00:00
msgstr "Remet le pointeur de fichier au début du flux audio."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:118
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 ""
2019-06-02 13:23:58 +00:00
"Les deux méthodes suivantes sont définies pour la compatibilité avec le "
"module :mod:`aifc` ; elles ne font rien dintéressant."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:124
2016-10-30 09:46:26 +00:00
msgid "Returns ``None``."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie ``None``."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:129
2016-10-30 09:46:26 +00:00
msgid "Raise an error."
2019-06-02 13:23:58 +00:00
msgstr "Lève une erreur."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:131
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 ""
2019-06-02 13:23:58 +00:00
"Les deux fonctions suivantes utilisent le vocabulaire \"position\". Ces "
"positions sont compatible entre elles, la \"position\" de l'un est "
"compatible avec la \"position\" de l'autre. Cette position est dépendante de "
"l'implémentation."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:137
2016-10-30 09:46:26 +00:00
msgid "Set the file pointer to the specified position."
2019-06-02 13:23:58 +00:00
msgstr "Place le pointeur du fichier sur la position spécifiée."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:142
2016-10-30 09:46:26 +00:00
msgid "Return current file pointer position."
2019-06-02 13:23:58 +00:00
msgstr "Renvoie la position actuelle du pointeur du fichier."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:148
2016-10-30 09:46:26 +00:00
msgid "Wave_write Objects"
2019-06-02 13:23:58 +00:00
msgstr "Objets Wave_write"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:150
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 ""
2019-06-02 13:23:58 +00:00
"Pour les flux de sortie navigables, l'en-tête ``wave`` est automatiquement "
"mis à jour pour refléter le nombre de trames réellement écrites. Pour les "
"flux non indexables, la valeur *nframes* doit être précise lorsque la "
"première trame est écrite. Une valeur précise de *nframes* peut être obtenue "
"en appelant les méthodes :meth:`~Wave_write.setnframes` ou :meth:"
"`~Wave_write.setparams` en passant en paramètre le nombre de trames qui "
"seront écrites avant que :meth:`~Wave_write.close` soit appelé puis en "
"utilisant la méthode :meth:`~Wave_write.writeframesraw` pour écrire les "
"trames audio, ou en appelant la méthode :meth:`~Wave_write.writeframes` avec "
"toutes les trames audio. Dans ce dernier cas, la méthode :meth:`~Wave_write."
"writeframes` calcule le nombre de trames dans le flux audio et définit "
"*nframes* en conséquence avant d'écrire les données des trames."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:162
2016-10-30 09:46:26 +00:00
msgid ""
"Wave_write objects, as returned by :func:`.open`, have the following methods:"
msgstr ""
2019-06-02 13:23:58 +00:00
"Les objets Wave_write, tels qu'ils sont renvoyés par :func:`.open`, ont les "
"méthodes suivantes :"
2016-10-30 09:46:26 +00:00
#: library/wave.rst:170
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 ""
2019-06-02 13:23:58 +00:00
"Assurez-vous que *nframes* soit correct et fermez le fichier s'il a été "
"ouvert par :mod:`wave`. Cette méthode est appelée à la destruction de "
"l'objet. Il lève une erreur si le flux de sortie n'est pas navigable et si "
"*nframes* ne correspond pas au nombre de trames réellement écrites."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:178
2016-10-30 09:46:26 +00:00
msgid "Set the number of channels."
2019-06-02 13:23:58 +00:00
msgstr "Définit le nombre de canaux."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:183
2016-10-30 09:46:26 +00:00
msgid "Set the sample width to *n* bytes."
2019-06-02 13:23:58 +00:00
msgstr "Définit la largeur de l'échantillon à *n* octets."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:188
2016-10-30 09:46:26 +00:00
msgid "Set the frame rate to *n*."
2019-06-02 13:23:58 +00:00
msgstr "Définit la fréquence des trames à *n*."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:190
2016-10-30 09:46:26 +00:00
msgid "A non-integral input to this method is rounded to the nearest integer."
msgstr ""
2019-06-02 13:23:58 +00:00
"Un paramètre non-entier passé à cette méthode est arrondi à l'entier le plus "
"proche."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:197
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 ""
2019-06-02 13:23:58 +00:00
"Définit le nombre de trames à *n*. Cela sera modifié ultérieurement si le "
"nombre de trames réellement écrites est différent (la tentative de mise à "
"jour générera une erreur si le flux de sortie n'est pas indexable)."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:204
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 ""
2019-06-02 13:23:58 +00:00
"Définit le type de compression et la description. Pour le moment, seul le "
"type de compression ``NONE`` est géré, c'est-à-dire aucune compression."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:210
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 ""
"Le sextuplet doit être ``(nchannels, sampwidth, framerate, nframes, "
2022-03-23 17:40:12 +00:00
"comptype, compname)``, avec des valeurs valides pour les méthodes :meth:"
"`set\\*`. Tous les paramètres sont obligatoires et doivent être définis."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:217
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 ""
2019-06-02 13:23:58 +00:00
"Renvoie la position actuelle dans le fichier, avec les mêmes réserves que "
"pour les méthodes :meth:`Wave_read.tell` et :meth:`Wave_read.setpos`."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:223
2016-10-30 09:46:26 +00:00
msgid "Write audio frames, without correcting *nframes*."
2019-06-02 13:23:58 +00:00
msgstr "Écrit les trames audio sans corriger *nframes*."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:236
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é."
#: library/wave.rst:231
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 ""
2019-06-02 13:23:58 +00:00
"Écrit des trames audio et s'assure que *nframes* est correct. Une erreur est "
"levée si le flux de sortie est non-navigable et si le nombre total de trames "
"écrites après que *data* soit écrit ne correspond pas à la valeur "
"précédemment définie pour *nframes*."
2016-10-30 09:46:26 +00:00
#: library/wave.rst:240
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 ""
2019-06-02 13:23:58 +00:00
"Notez qu'il est impossible de définir des paramètres après avoir appelé :"
"meth:`writeframes` ou :meth:`writeframesraw`, et toute tentative en ce sens "
"lève une :exc:`wave.Error`."
2020-07-20 08:56:42 +00:00
#~ msgid "A synonym for :func:`.open`, maintained for backwards compatibility."
#~ msgstr "Un synonyme de :func:`.open`, maintenu pour la rétrocompatibilité."