Git Product home page Git Product logo

making_with_ml's People

Contributors

aruseni avatar atarax665 avatar dalequark avatar dependabot[bot] avatar haroenv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

making_with_ml's Issues

ai_dubs has wrong path on GCS

Hello. I tried your command but it always show error :
File "dubber.py", line 443, in dub transcripts = get_transcripts_json(os.path.join( File "dubber.py", line 110, in get_transcripts_json res = client.long_running_recognize(config=config, audio=audio).result() File "C:\Users\mrcool\making_with_ml\ai_dubs\venv\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\mrcool\making_with_ml\ai_dubs\venv\lib\site-packages\google\api_core\gapic_v1\method.py", line 145, in __call__ return wrapped_func(*args, **kwargs) File "C:\Users\mrcool\making_with_ml\ai_dubs\venv\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 "<string>", line 3, in raise_from google.api_core.exceptions.InvalidArgument: 400 Invalid recognition 'config': Bad language code.

Error at starting

So I followed every step.But when i run it, it says:

Error [TOKEN_INVALID]: An invalid token was provided.
at Client.login (/home/pi/Desktop/Discord/discord_moderator/node_modules/discord.js/src/client/Client.js:206:52)
at Object. (/home/pi/Desktop/Discord/discord_moderator/discord.js:141:8)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
[Symbol(code)]: 'TOKEN_INVALID'

but the API key and the Bot Token are the right. Could someone help please?

400 Invalid recognition 'config': Bad language code.

No matter how many variations i tried, this error is not going away. is it the problem with video? or is it the problem with something else? I tried to google the error, but no useful results.

Can somebody help me?

ai_dubs: Getting SSL error when uploading to bucket

I'm getting the following error when trying to upload to the bucket

it seems to be complaining about max retries exceeded. At first i thought this could be an issue with my .json key but the path in the environment variable there looks fine.

do i need to separately install open ssl like I did for ffmpeg?

stack trace below:

`Transcribing audio
Uploading to the cloud...
Traceback (most recent call last):
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1253, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1299, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1248, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1047, in _send_output
self.send(chunk)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 969, in send
self.sock.sendall(data)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1204, in sendall
v = self.send(byte_view[count:])
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1173, in send
return self._sslobj.write(data)
ssl.SSLWantWriteError: The operation did not complete (write) (_ssl.c:2477)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /upload/storage/v1/b/ppc-video/o?uploadType=resumable&upload_id=ABg5-UxHTYHlMAmIxsMZIRV7Lh98eNQRyy3T4GR9ZRPy8xBQ4cKPsPQZyGq-0USNWO8kR-VKjsgEvzrIHsX3Dq5rkjYT_Koihw (Caused by SSLError(SSLWantWriteError(3, 'The operation did not complete (write) (_ssl.c:2477)')))

During handling of the above exception, another exception occurred:

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 447, in dub
blob.upload_from_filename(os.path.join(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\cloud\storage\blob.py", line 2460, in upload_from_filename
self.upload_from_file(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\cloud\storage\blob.py", line 2343, in upload_from_file
created_json = self._do_upload(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\cloud\storage\blob.py", line 2180, in _do_upload
response = self._do_resumable_upload(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\cloud\storage\blob.py", line 2041, in _do_resumable_upload
response = upload.transmit_next_chunk(transport, timeout=timeout)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\resumable_media\requests\upload.py", line 496, in transmit_next_chunk
response = _request_helpers.http_request(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\resumable_media\requests_request_helpers.py", line 136, in http_request
return _helpers.wait_and_retry(func, RequestsMixin._get_status_code, retry_strategy)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\resumable_media_helpers.py", line 186, in wait_and_retry
raise error
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\resumable_media_helpers.py", line 175, in wait_and_retry
response = func()
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\google\auth\transport\requests.py", line 464, in request
response = super(AuthorizedSession, self).request(
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs)
File "C:\Users\anton\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 514, in send raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /upload/storage/v1/b/ppc-video/o?uploadType=resumable&upload_id=ABg5-UxHTYHlMAmIxsMZIRV7Lh98eNQRyy3T4GR9ZRPy8xBQ4cKPsPQZyGq-0USNWO8kR-VKjsgEvzrIHsX3Dq5rkjYT_Koihw (Caused by SSLError(SSLWantWriteError(3, 'The operation did not complete (write) (_ssl.c:2477)')))`

FileExistsError

FileExistsError: [Errno 17] File exists: 'output/audioClips/ru' when dubbing for the same language again with genAudio set to False, which is the default for genAudio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.