Skip to content

[Feature]: Support GeminiSpeechToText, createInteractionBidiStream, and GetModelQuota / ListModelRateLimits #359

Done

Description

@lawrancehoy-cyber

想要什么,用来做什么 / What you want and what for

想要什么,用来做什么 / What you want and what for

Recent AI Studio web client bundles expose three new MakerSuite RPCs/transports that would improve audio transcription, Interactions-backed Live agents, and quota/rate-limit visibility:

  1. MakerSuiteService/GeminiSpeechToText (for lightweight /v1/audio/transcriptions)

    • Request ([blob, waaProof]): field 1 is [mimeType, audioBytes]; field 2 is a WAA proof whose bound string is ${mimeType} ${bytesLength}.
    • Response: field 1 returns the transcribed text string.
    • Using this dedicated endpoint instead of a full GenerateContent prompt would reduce latency and payload overhead for /v1/audio/transcriptions.
  2. Interactions-backed Live streaming (/v1/createInteractionBidiStream)

    • New Live agent sessions (type === 2) stream over POST /v1/createInteractionBidiStream with useFetchStreams: true (WebChannel/fetch-stream bidirectional frames) and WAA binding instead of bidiGenerateContent.
  3. Account quota & rate-limit introspection (GetModelQuota & ListModelRateLimits)

    • MakerSuiteService/GetModelQuota: request [model], response returns [metricName, limit, remaining] entries per model.
    • MakerSuiteService/ListModelRateLimits: request [projectName], response lists per-model rate limit buckets.
    • Useful for smarter account rotation / cooldown decisions and surfacing real remaining quota in the Admin UI.

版本 / Version

v0.3.16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions