320x100
라즈베리파이로 Google Cloud VoiceAi 사용 중에
아래와 같이
BILLING_DISABLED, no attribute 'from_call'에러가 발생.
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 66, in error_remapped_callable
return callable_(*args, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/home/pi/.local/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "This API method requires billing to be enabled. Please enable billing on project #528403****** by visiting https://console.developers.google.com/billing/enable?project=528403****** then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry."
debug_error_string = "{"created":"@1661388348.518441668","description":"Error received from peer ipv4:172.217.31.138:443","file":"src/core/lib/surface/call.cc","file_line":1064,"grpc_message":"This API method requires billing to be enabled. Please enable billing on project #528403****** by visiting https://console.developers.google.com/billing/enable?project=528403****** then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.","grpc_status":7}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/AI/voiceAI/tts.py", line 20, in <module>
tts("HI go ggo go", "en-US", "en-US-Standard-C", "output.mp3")
File "/home/pi/AI/voiceAI/tts.py", line 15, in tts
response = client.synthesize_speech(request={"input":input_text, "voice": voice, "audio_config": audio_config})
File "/home/pi/.local/lib/python3.7/site-packages/google/cloud/texttospeech_v1/services/text_to_speech/client.py", line 497, in synthesize_speech
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
File "/home/pi/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", line 154, in __call__
return wrapped_func(*args, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 68, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.PermissionDenied: 403 This API method requires billing to be enabled. Please enable billing on project #528403****** by visiting https://console.developers.google.com/billing/enable?project=528403****** then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry. [links {
description: "Google developers console billing"
url: "https://console.developers.google.com/billing/enable?project=528403******"
}
, reason: "BILLING_DISABLED"
domain: "googleapis.com"
metadata {
key: "consumer"
value: "projects/528403******"
}
metadata {
key: "service"
value: "texttospeech.googleapis.com"
}
]
AttributeError: 'NoneType' object has no attribute 'from_call'
Billing Disabled부터 느낌이 왔다.
결제를 하라...? 는 아니고
내 마스터카드가 만료일이 지나 카드가 바뀌었는데 구글 클라우드에 갱신을 안 해줬다.
구글 결제수단에는 기본 결제수단으로 결제가 되지 않을 시 백업 결제수단이라는 방법도 있으니 참고하면 좋을 듯.
반응형
'프로그래밍 > Python' 카테고리의 다른 글
[Python] OpenCV란 (0) | 2022.10.06 |
---|---|
[Python] ModuleNotFoundError: No module named 'main_rc' 오류 해결 (0) | 2022.09.07 |
[파이썬 독학] 7. 딕셔너리(Dictionary)란? (0) | 2022.08.19 |
[Python] 환경변수 등록하기(feat. google.auth.exceptions.DefaultCredentialsError) (0) | 2022.07.26 |
[Python] GLIBC_2.33 not found in raspberry pi python (0) | 2022.07.25 |
댓글