However just after successfully downloading the transcribed speech from replicate I get this error message in my github action and the transcription is lost:
[ExtractAudio] Destination: 2/whisper/audio.mp3
Deleting original file 2/whisper/audio.webm (pass -k to keep)
Traceback (most recent call last):
File "/home/runner/work/youtube-transcriber/youtube-transcriber/transcribe_audio.py", line 24, in
output = transcribe_audio(audio_path)
File "/home/runner/work/youtube-transcriber/youtube-transcriber/transcribe_audio.py", line 8, in transcribe_audio
return model.predict(
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/model.py", line 20, in predict
return latest_version.predict(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/version.py", line 18, in predict
prediction = self._client.predictions.create(version=self, input=kwargs)
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/prediction.py", line 69, in create
resp = self._client._request(
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/client.py", line 56, in _request
raise ReplicateError(f"HTTP error: {resp.status_code, resp.reason}")
replicate.exceptions.ReplicateError: HTTP error: (413, 'Request Entity Too Large')
Error: ENOENT: no such file or directory, open '2/whisper/transcription.json'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13356:16), :36:37)
at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13357:12)
at main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13452:26)
at Module.858 (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13429:1)
at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:24:31)
at startup (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:43:19)
at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:49:18
at Object. (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:52:10) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '2/whisper/transcription.json'
}
Error: Unhandled error: Error: ENOENT: no such file or directory, open '2/whisper/transcription.json'
Thanks for this cool tool! I am attempting to use it here: https://github.com/jamiepratt/youtube-transcriber
However just after successfully downloading the transcribed speech from replicate I get this error message in my github action and the transcription is lost:
[ExtractAudio] Destination: 2/whisper/audio.mp3 Deleting original file 2/whisper/audio.webm (pass -k to keep)
2 2/whisper 2/whisper/audio.mp3 2/metadata 2/metadata/info.json 2/metadata-temp
Traceback (most recent call last): File "/home/runner/work/youtube-transcriber/youtube-transcriber/transcribe_audio.py", line 24, in
output = transcribe_audio(audio_path)
File "/home/runner/work/youtube-transcriber/youtube-transcriber/transcribe_audio.py", line 8, in transcribe_audio
return model.predict(
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/model.py", line 20, in predict
return latest_version.predict(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/version.py", line 18, in predict
prediction = self._client.predictions.create(version=self, input=kwargs)
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/prediction.py", line 69, in create
resp = self._client._request(
File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/replicate/client.py", line 56, in _request
raise ReplicateError(f"HTTP error: {resp.status_code, resp.reason}")
replicate.exceptions.ReplicateError: HTTP error: (413, 'Request Entity Too Large')
Error: ENOENT: no such file or directory, open '2/whisper/transcription.json' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13356:16),:36:37)
at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13357:12)
at main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13452:26)
at Module.858 (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:13429:1)
at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:24:31)
at startup (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:43:19)
at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:49:18
at Object. (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:52:10) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '2/whisper/transcription.json'
}
Error: Unhandled error: Error: ENOENT: no such file or directory, open '2/whisper/transcription.json'