Comments (3)
I don't know the answer to this, but if you do install SSL separately and it works, could you let me know? :)
from making_with_ml.
installing ssl throws an error because it looks like that module was made for python2 but it's now included in 3
https://stackoverflow.com/questions/56135959/having-trouble-installing-ssl-on-pc-using-pip-install
I can import ssl without errors though so it seems to be ok in my installation
from making_with_ml.
I tried with a much smaller video file (about 1Mb) and was able to get it to upload without failing but now I'm just a bit further. It now complains about the wav file's path. I'm not sure if this is a windows issue here since the / \ is inconsistent.
The file itself is in my bucket though
google.api_core.exceptions.InvalidArgument: 400 Audio URI gs://ppc-video\tmp\a2743896-6b2c-4d1c-b286-cd658ca09c7e.wav
is an invalid GCS path.
Console Output:
Transcribing...
Diarizing: False
Traceback (most recent call last):
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\api_core\grpc_helpers.py", line 57, in error_remapped_callable
return callable_(*args, **kwargs)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\grpc_channel.py", line 923, in call
return _end_unary_response_blocking(state, call, False, None)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\grpc_channel.py", line 826, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Audio URI gs://ppc-video\tmp\a2743896-6b2c-4d1c-b286-cd658ca09c7e.wav
is an invalid GCS path."
debug_error_string = "{"created":"@1619637684.712000000","description":"Error received from peer ipv6:[2607:f8b0:4007:80f::200a]:443","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Audio URI gs://ppc-video\tmp\a2743896-6b2c-4d1c-b286-cd658ca09c7e.wav
is an invalid GCS path.","grpc_status":3}"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\anton\Documents\GitHub\making_with_ml\ai_dubs\dubber.py", line 531, in
fire.Fire(dub)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 463, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\anton\Documents\GitHub\making_with_ml\ai_dubs\dubber.py", line 451, in dub
transcripts = get_transcripts_json(os.path.join(
File "C:\Users\anton\Documents\GitHub\making_with_ml\ai_dubs\dubber.py", line 113, in get_transcripts_json
res = client.long_running_recognize(config=config, audio=audio).result()
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\cloud\speech_v1p1beta1\services\speech\client.py", line 457, in long_running_recognize
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\api_core\gapic_v1\method.py", line 145, in call
return wrapped_func(*args, **kwargs)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\api_core\grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "", line 3, in raise_from
google.api_core.exceptions.InvalidArgument: 400 Audio URI gs://ppc-video\tmp\a2743896-6b2c-4d1c-b286-cd658ca09c7e.wav
is an invalid GCS path.
from making_with_ml.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from making_with_ml.