MCPcopy Create free account
hub / github.com/dmlc/decord / shape

Method shape

python/decord/audio_reader.py:116–125  ·  view source on GitHub ↗

Get shape of the entire audio samples. Returns ------- (int, int) The number of channels, and the number of samples in each channel.

(self)

Source from the content-addressed store, hash-verified

114
115 @property
116 def shape(self):
117 """Get shape of the entire audio samples.
118
119 Returns
120 -------
121 (int, int)
122 The number of channels, and the number of samples in each channel.
123
124 """
125 return (self._num_channels, self._num_samples_per_channel)
126
127 def duration(self):
128 """Get duration of the audio.

Callers 7

test_bytes_ioFunction · 0.95
_get_sliceMethod · 0.45
test_resampleFunction · 0.45
test_channel_changeFunction · 0.45
test_add_paddingFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_bytes_ioFunction · 0.76
test_resampleFunction · 0.36
test_channel_changeFunction · 0.36
test_add_paddingFunction · 0.36