Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Speech Python 3.5 encoding content - 'not JSON serializable'#2520

Merged
daspecster merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
daspecster:fix-encoding-speech-bug-2519daspecster/google-cloud-python:fix-encoding-speech-bug-2519Copy head branch name to clipboard
Oct 11, 2016
Merged

Speech Python 3.5 encoding content - 'not JSON serializable'#2520
daspecster merged 2 commits into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
daspecster:fix-encoding-speech-bug-2519daspecster/google-cloud-python:fix-encoding-speech-bug-2519Copy head branch name to clipboard

Conversation

@daspecster

@daspecster daspecster commented Oct 9, 2016

Copy link
Copy Markdown
Contributor

Handling bytes when encoding the request content was failing in Python 3.5.

Closes #2519.

@daspecster daspecster added the api: speech Issues related to the Speech-to-Text API. label Oct 9, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 9, 2016
Comment thread speech/google/cloud/speech/client.py Outdated
if sample.content is not None:
audio = {'content': b64encode(_to_bytes(sample.content))}
audio = {'content':
b64encode(_to_bytes(sample.content)).decode('ascii')}

This comment was marked as spam.

This comment was marked as spam.

@daspecster daspecster force-pushed the fix-encoding-speech-bug-2519 branch from e3fb4a0 to 23a2979 Compare October 10, 2016 15:22
@daspecster daspecster force-pushed the fix-encoding-speech-bug-2519 branch from 23a2979 to 9e5b448 Compare October 10, 2016 16:37
@tseaver

tseaver commented Oct 10, 2016

Copy link
Copy Markdown
Contributor

LGTM

@daspecster daspecster merged commit bd80996 into googleapis:master Oct 11, 2016
@daspecster daspecster deleted the fix-encoding-speech-bug-2519 branch October 11, 2016 13:22
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…h-bug-2519

Speech Python 3.5 encoding content - 'not JSON serializable'
atulep pushed a commit that referenced this pull request Apr 3, 2023
Speech Python 3.5 encoding content - 'not JSON serializable'
atulep pushed a commit that referenced this pull request Apr 18, 2023
Speech Python 3.5 encoding content - 'not JSON serializable'
parthea pushed a commit that referenced this pull request Oct 22, 2023
Speech Python 3.5 encoding content - 'not JSON serializable'
ohmayr pushed a commit that referenced this pull request Mar 13, 2026
chalmerlowe pushed a commit that referenced this pull request Mar 31, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.8.3
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
<details><summary>bigframes: v2.38.0</summary>

##
[v2.38.0](googleapis/python-bigquery-dataframes@v2.37.0...v2.38.0)
(2026-03-16)

### Features

* Add `bigframes.bigquery.rand()` function (#2501)
([5c43efb7](googleapis/python-bigquery-dataframes@5c43efb7))

* add `df.bigquery` pandas accessor (#2513)
([91b6c245](googleapis/python-bigquery-dataframes@91b6c245))

* Add str, dt accessors to pd.col Expression objects (#2488)
([ce5de570](googleapis/python-bigquery-dataframes@ce5de570))

* add bigquery.ml.get_insights function (#2493)
([d29a6095](googleapis/python-bigquery-dataframes@d29a6095))

* use EUC for AI IF, CLASSIFY, and SCORE when connection is not provided
(#2507)
([fe94910a](googleapis/python-bigquery-dataframes@fe94910a))

### Bug Fixes

* handle unsupported types and empty results in describe (#2506)
([2326ad6a](googleapis/python-bigquery-dataframes@2326ad6a))

* no longer automatically use anywidget in the `%%bqsql` magics (#2504)
([43353e2b](googleapis/python-bigquery-dataframes@43353e2b))

### Documentation

* Fix typo in ExperimentOptions class docstring (#2498)
([077cb2eb](googleapis/python-bigquery-dataframes@077cb2eb))

* add notebooks to user guide page (#2505)
([5cf37888](googleapis/python-bigquery-dataframes@5cf37888))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.