7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-09-13 00:11 +0000\n "
10
+ "POT-Creation-Date : 2022-03-23 00:14 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:38+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -20,21 +20,25 @@ msgstr ""
20
20
21
21
#: ../../library/aifc.rst:2
22
22
msgid ":mod:`aifc` --- Read and write AIFF and AIFC files"
23
- msgstr ""
23
+ msgstr ":mod:`aifc` --- 讀寫 AIFF 與 AIFC 檔案 "
24
24
25
- #: ../../library/aifc.rst:7
25
+ #: ../../library/aifc.rst:8
26
26
msgid "**Source code:** :source:`Lib/aifc.py`"
27
27
msgstr "**原始碼:**\\ :source:`Lib/aifc.py`"
28
28
29
29
#: ../../library/aifc.rst:16
30
+ msgid "The :mod:`aifc` module is deprecated (see :pep:`594` for details)."
31
+ msgstr ":mod:`aifc` 模組 (module) 即將被棄用(詳見 :pep:`594`\\ )。"
32
+
33
+ #: ../../library/aifc.rst:21
30
34
msgid ""
31
35
"This module provides support for reading and writing AIFF and AIFF-C files. "
32
36
"AIFF is Audio Interchange File Format, a format for storing digital audio "
33
37
"samples in a file. AIFF-C is a newer version of the format that includes "
34
38
"the ability to compress the audio data."
35
39
msgstr ""
36
40
37
- #: ../../library/aifc.rst:21
41
+ #: ../../library/aifc.rst:26
38
42
msgid ""
39
43
"Audio files have a number of parameters that describe the audio data. The "
40
44
"sampling rate or frame rate is the number of times per second the sound is "
@@ -45,19 +49,19 @@ msgid ""
45
49
"samplesize * framerate`` bytes."
46
50
msgstr ""
47
51
48
- #: ../../library/aifc.rst:29
52
+ #: ../../library/aifc.rst:34
49
53
msgid ""
50
54
"For example, CD quality audio has a sample size of two bytes (16 bits), uses "
51
55
"two channels (stereo) and has a frame rate of 44,100 frames/second. This "
52
56
"gives a frame size of 4 bytes (2\\ *2), and a second's worth occupies "
53
57
"2\\ *2\\ *44100 bytes (176,400 bytes)."
54
58
msgstr ""
55
59
56
- #: ../../library/aifc.rst:34
60
+ #: ../../library/aifc.rst:39
57
61
msgid "Module :mod:`aifc` defines the following function:"
58
62
msgstr ":mod:`aifc` 模組定義了以下函式:"
59
63
60
- #: ../../library/aifc.rst:39
64
+ #: ../../library/aifc.rst:44
61
65
msgid ""
62
66
"Open an AIFF or AIFF-C file and return an object instance with methods that "
63
67
"are described below. The argument *file* is either a string naming a file "
@@ -71,94 +75,94 @@ msgid ""
71
75
"keyword:`!with` block completes, the :meth:`~aifc.close` method is called."
72
76
msgstr ""
73
77
74
- #: ../../library/aifc.rst:50
78
+ #: ../../library/aifc.rst:55
75
79
msgid "Support for the :keyword:`with` statement was added."
76
80
msgstr ""
77
81
78
- #: ../../library/aifc.rst:53
82
+ #: ../../library/aifc.rst:58
79
83
msgid ""
80
84
"Objects returned by :func:`.open` when a file is opened for reading have the "
81
85
"following methods:"
82
86
msgstr ""
83
87
84
- #: ../../library/aifc.rst:59
88
+ #: ../../library/aifc.rst:64
85
89
msgid "Return the number of audio channels (1 for mono, 2 for stereo)."
86
90
msgstr ""
87
91
88
- #: ../../library/aifc.rst:64
92
+ #: ../../library/aifc.rst:69
89
93
msgid "Return the size in bytes of individual samples."
90
94
msgstr ""
91
95
92
- #: ../../library/aifc.rst:69
96
+ #: ../../library/aifc.rst:74
93
97
msgid "Return the sampling rate (number of audio frames per second)."
94
98
msgstr ""
95
99
96
- #: ../../library/aifc.rst:74
100
+ #: ../../library/aifc.rst:79
97
101
msgid "Return the number of audio frames in the file."
98
102
msgstr ""
99
103
100
- #: ../../library/aifc.rst:79
104
+ #: ../../library/aifc.rst:84
101
105
msgid ""
102
106
"Return a bytes array of length 4 describing the type of compression used in "
103
107
"the audio file. For AIFF files, the returned value is ``b'NONE'``."
104
108
msgstr ""
105
109
106
- #: ../../library/aifc.rst:86
110
+ #: ../../library/aifc.rst:91
107
111
msgid ""
108
112
"Return a bytes array convertible to a human-readable description of the type "
109
113
"of compression used in the audio file. For AIFF files, the returned value "
110
114
"is ``b'not compressed'``."
111
115
msgstr ""
112
116
113
- #: ../../library/aifc.rst:93
117
+ #: ../../library/aifc.rst:98
114
118
msgid ""
115
119
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
116
120
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
117
121
"`get\\ *` methods."
118
122
msgstr ""
119
123
120
- #: ../../library/aifc.rst:100
124
+ #: ../../library/aifc.rst:105
121
125
msgid ""
122
126
"Return a list of markers in the audio file. A marker consists of a tuple of "
123
127
"three elements. The first is the mark ID (an integer), the second is the "
124
128
"mark position in frames from the beginning of the data (an integer), the "
125
129
"third is the name of the mark (a string)."
126
130
msgstr ""
127
131
128
- #: ../../library/aifc.rst:108
132
+ #: ../../library/aifc.rst:113
129
133
msgid ""
130
134
"Return the tuple as described in :meth:`getmarkers` for the mark with the "
131
135
"given *id*."
132
136
msgstr ""
133
137
134
- #: ../../library/aifc.rst:114
138
+ #: ../../library/aifc.rst:119
135
139
msgid ""
136
140
"Read and return the next *nframes* frames from the audio file. The returned "
137
141
"data is a string containing for each frame the uncompressed samples of all "
138
142
"channels."
139
143
msgstr ""
140
144
141
- #: ../../library/aifc.rst:121
145
+ #: ../../library/aifc.rst:126
142
146
msgid ""
143
147
"Rewind the read pointer. The next :meth:`readframes` will start from the "
144
148
"beginning."
145
149
msgstr ""
146
150
147
- #: ../../library/aifc.rst:127
151
+ #: ../../library/aifc.rst:132
148
152
msgid "Seek to the specified frame number."
149
153
msgstr ""
150
154
151
- #: ../../library/aifc.rst:132
155
+ #: ../../library/aifc.rst:137
152
156
msgid "Return the current frame number."
153
157
msgstr ""
154
158
155
- #: ../../library/aifc.rst:137
159
+ #: ../../library/aifc.rst:142
156
160
msgid ""
157
161
"Close the AIFF file. After calling this method, the object can no longer be "
158
162
"used."
159
163
msgstr ""
160
164
161
- #: ../../library/aifc.rst:140
165
+ #: ../../library/aifc.rst:145
162
166
msgid ""
163
167
"Objects returned by :func:`.open` when a file is opened for writing have all "
164
168
"the above methods, except for :meth:`readframes` and :meth:`setpos`. In "
@@ -168,40 +172,40 @@ msgid ""
168
172
"parameters except for the number of frames must be filled in."
169
173
msgstr ""
170
174
171
- #: ../../library/aifc.rst:150
175
+ #: ../../library/aifc.rst:155
172
176
msgid ""
173
177
"Create an AIFF file. The default is that an AIFF-C file is created, unless "
174
178
"the name of the file ends in ``'.aiff'`` in which case the default is an "
175
179
"AIFF file."
176
180
msgstr ""
177
181
178
- #: ../../library/aifc.rst:156
182
+ #: ../../library/aifc.rst:161
179
183
msgid ""
180
184
"Create an AIFF-C file. The default is that an AIFF-C file is created, "
181
185
"unless the name of the file ends in ``'.aiff'`` in which case the default is "
182
186
"an AIFF file."
183
187
msgstr ""
184
188
185
- #: ../../library/aifc.rst:163
189
+ #: ../../library/aifc.rst:168
186
190
msgid "Specify the number of channels in the audio file."
187
191
msgstr ""
188
192
189
- #: ../../library/aifc.rst:168
193
+ #: ../../library/aifc.rst:173
190
194
msgid "Specify the size in bytes of audio samples."
191
195
msgstr ""
192
196
193
- #: ../../library/aifc.rst:173
197
+ #: ../../library/aifc.rst:178
194
198
msgid "Specify the sampling frequency in frames per second."
195
199
msgstr ""
196
200
197
- #: ../../library/aifc.rst:178
201
+ #: ../../library/aifc.rst:183
198
202
msgid ""
199
203
"Specify the number of frames that are to be written to the audio file. If "
200
204
"this parameter is not set, or not set correctly, the file needs to support "
201
205
"seeking."
202
206
msgstr ""
203
207
204
- #: ../../library/aifc.rst:189
208
+ #: ../../library/aifc.rst:194
205
209
msgid ""
206
210
"Specify the compression type. If not specified, the audio data will not be "
207
211
"compressed. In AIFF files, compression is not possible. The name parameter "
@@ -211,42 +215,42 @@ msgid ""
211
215
"``b'ALAW'``, ``b'G722'``."
212
216
msgstr ""
213
217
214
- #: ../../library/aifc.rst:199
218
+ #: ../../library/aifc.rst:204
215
219
msgid ""
216
220
"Set all the above parameters at once. The argument is a tuple consisting of "
217
221
"the various parameters. This means that it is possible to use the result of "
218
222
"a :meth:`getparams` call as argument to :meth:`setparams`."
219
223
msgstr ""
220
224
221
- #: ../../library/aifc.rst:206
225
+ #: ../../library/aifc.rst:211
222
226
msgid ""
223
227
"Add a mark with the given id (larger than 0), and the given name at the "
224
228
"given position. This method can be called at any time before :meth:`close`."
225
229
msgstr ""
226
230
227
- #: ../../library/aifc.rst:213
231
+ #: ../../library/aifc.rst:218
228
232
msgid ""
229
233
"Return the current write position in the output file. Useful in combination "
230
234
"with :meth:`setmark`."
231
235
msgstr ""
232
236
233
- #: ../../library/aifc.rst:219
237
+ #: ../../library/aifc.rst:224
234
238
msgid ""
235
239
"Write data to the output file. This method can only be called after the "
236
240
"audio file parameters have been set."
237
241
msgstr ""
238
242
239
- #: ../../library/aifc.rst:222 ../../library/aifc.rst:231
243
+ #: ../../library/aifc.rst:227 ../../library/aifc.rst:236
240
244
msgid "Any :term:`bytes-like object` is now accepted."
241
245
msgstr ""
242
246
243
- #: ../../library/aifc.rst:228
247
+ #: ../../library/aifc.rst:233
244
248
msgid ""
245
249
"Like :meth:`writeframes`, except that the header of the audio file is not "
246
250
"updated."
247
251
msgstr ""
248
252
249
- #: ../../library/aifc.rst:238
253
+ #: ../../library/aifc.rst:243
250
254
msgid ""
251
255
"Close the AIFF file. The header of the file is updated to reflect the "
252
256
"actual size of the audio data. After calling this method, the object can no "
0 commit comments