Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue when content_to_trans is empty #199

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

WeibingChen17
Copy link

The text returned from google speech_to_text can be empty. In this case, an error is thrown during translation :

TypeError: the JSON object must be str, bytes or bytearray, not NoneType

The text returned from google speech_to_text can be empty. In this case, an error is thrown during translation : 
```
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
```
@BingLingGroup BingLingGroup merged commit c40a608 into BingLingGroup:dev Dec 21, 2023
@BingLingGroup
Copy link
Owner

Thanks for you pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants