I wrote below,


my_request_body={'audio': {'uri': 'gs://sumple/test.flac'},
 'config': {'diarizationConfig': {'enable_speaker_diarization': True,
   'max_speaker_count': 5,
   'min_speaker_count': 1},
  'encoding': <AudioEncoding.FLAC: 2>,
  'languageCode': 'ja-JP',
  'model': 'default',
  'sampleRateHertz': 16000}}

response_g = speech_service.speech().longrunningrecognize(body=my_request_body).execute()

And I search result by below command.

import requests

params = (
    ('key', '-----'),
)

response_ghttp = requests.get('https://speech.googleapis.com/v1/operations/%7Bname=4846154241986901642%7D', params=params)
response_list = requests.get('https://speech.googleapis.com/v1/operations', params=params)

but, response said

{
  "error": {
    "code": 400,
    "message": "Unrecognized long running operation name: {name=4846154241986901642}",
    "status": "INVALID_ARGUMENT"
  }

Please tell me why !!

In above, 'name' is result of type 'response_g'like that

{'name': '4846154241986901642%7D}