Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hehl2
Torchaudio
Commits
765fde08
"tools/vscode:/vscode.git/clone" did not exist on "bbf3d987b2d172add17cd366f09cfa9400693693"
Unverified
Commit
765fde08
authored
Feb 26, 2021
by
Artyom Astafurov
Committed by
GitHub
Feb 26, 2021
Browse files
Update AudioMetaData docstring with encoding values (#1322)
parent
48edb324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
torchaudio/backend/common.py
torchaudio/backend/common.py
+15
-1
No files found.
torchaudio/backend/common.py
View file @
765fde08
...
@@ -9,7 +9,21 @@ class AudioMetaData:
...
@@ -9,7 +9,21 @@ class AudioMetaData:
:ivar int num_channels: The number of channels
:ivar int num_channels: The number of channels
:ivar int bits_per_sample: The number of bits per sample. This is 0 for lossy formats,
:ivar int bits_per_sample: The number of bits per sample. This is 0 for lossy formats,
or when it cannot be accurately inferred.
or when it cannot be accurately inferred.
:ivar str encoding: Audio encoding.
:ivar str encoding: Audio encoding
The values encoding can take are one of the following:
* ``PCM_S``: Signed integer linear PCM
* ``PCM_U``: Unsigned integer linear PCM
* ``PCM_F``: Floating point linear PCM
* ``FLAC``: Flac, Free Lossless Audio Codec
* ``ULAW``: Mu-law
* ``ALAW``: A-law
* ``MP3`` : MP3, MPEG-1 Audio Layer III
* ``VORBIS``: OGG Vorbis
* ``AMR_WB``: Adaptive Multi-Rate
* ``AMR_NB``: Adaptive Multi-Rate Wideband
* ``OPUS``: Opus
* ``UNKNOWN`` : None of above
"""
"""
def
__init__
(
def
__init__
(
self
,
self
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment