We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ddf78 commit 3712cf6Copy full SHA for 3712cf6
src/torchcodec/encoders/_audio_encoder.py
@@ -69,7 +69,7 @@ def to_file(
69
_core.encode_audio_to_file(
70
samples=self._samples,
71
sample_rate=self._sample_rate,
72
- filename=dest,
+ filename=str(dest),
73
bit_rate=bit_rate,
74
num_channels=num_channels,
75
desired_sample_rate=sample_rate,
test/test_encoders.py
@@ -325,7 +325,7 @@ def test_against_to_file(
325
326
params = dict(bit_rate=bit_rate, num_channels=num_channels)
327
encoded_file = tmp_path / f"output.{format}"
328
- encoder.to_file(dest=str(encoded_file), **params)
+ encoder.to_file(dest=encoded_file, **params)
329
330
if method == "to_tensor":
331
encoded_output = encoder.to_tensor(
0 commit comments