googleapis / googleapis/google-cloud-go

speech: StreamingRecognize - Stream timed out after receiving no more client requests.

Open
#11,970 2 comments 0 reactions 0 assignees View on GitHub
api: speech type: question
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

## Client

Cloud Speech-to-Text V2, go client library v1.26.1

## Environment

```
% go version
go version go1.24.1 darwin/amd64
```

## Code and Dependencies

See MVE here: https://github.com/tonyjhuang/stt-receivetranscription-mve

## Expected behavior

`speech.Client.StreamingRecognize` stream returns transcriptions via `Speech_StreamingRecognizeClient.Recv()` as audio data is streamed via `Speech_StreamingRecognizeClient.Send()`.

## Actual behavior

`Speech_StreamingRecognizeClient.Recv()` blocks indefinitely even as audio data is being streamed until the connection times out from inactivity.

## Screenshots

![Image](https://github.com/user-attachments/assets/5811df56-7c17-41dd-ba36-63a832c073c5)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.