Speech-to-Text audit logging

This document describes audit logging for Speech-to-Text, which methods generate audit logs, details about the audit log(s) each method produces, and which methods do not produce audit logs, if any. Google Cloud generates audit logs that record administrative and access activities within your Google Cloud resources. For more information, see Cloud Audit Logs overview.

Service name

Speech-to-Text audit logs use the service name speech.googleapis.com.

Methods by permission type

Methods that check DATA_READ, DATA_WRITE, and ADMIN_READ permissions generate logs categorized as Data Access audit logs. Methods that check ADMIN_WRITE permissions generate logs categorized as Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.cloud.speech.v2.Speech.GetConfig
google.cloud.speech.v2.Speech.GetRecognizer
google.cloud.speech.v2.Speech.ListRecognizers
ADMIN_WRITE google.cloud.speech.v2.Speech.CreateRecognizer
google.cloud.speech.v2.Speech.DeleteRecognizer
google.cloud.speech.v2.Speech.UndeleteRecognizer
google.cloud.speech.v2.Speech.UpdateConfig
google.cloud.speech.v2.Speech.UpdateRecognizer
DATA_READ google.cloud.speech.v2.Speech.BatchRecognize
google.cloud.speech.v2.Speech.GetCustomClass
google.cloud.speech.v2.Speech.GetPhraseSet
google.cloud.speech.v2.Speech.ListCustomClasses
google.cloud.speech.v2.Speech.ListPhraseSets
google.cloud.speech.v2.Speech.Recognize
google.cloud.speech.v2.Speech.StreamingRecognize
DATA_WRITE google.cloud.speech.v2.Speech.CreateCustomClass
google.cloud.speech.v2.Speech.CreatePhraseSet
google.cloud.speech.v2.Speech.DeleteCustomClass
google.cloud.speech.v2.Speech.DeletePhraseSet
google.cloud.speech.v2.Speech.UndeleteCustomClass
google.cloud.speech.v2.Speech.UndeletePhraseSet
google.cloud.speech.v2.Speech.UpdateCustomClass
google.cloud.speech.v2.Speech.UpdatePhraseSet

Audit logs for each API interface

For information about how and which permissions are evaluated, for each method, see the Identity and Access Management documentation for Speech-to-Text.

google.cloud.speech.v2.Speech

The following section contains details about audit logs associated with methods belonging to google.cloud.speech.v2.Speech.

BatchRecognize

CreateCustomClass

CreatePhraseSet

CreateRecognizer

DeleteCustomClass

DeletePhraseSet

DeleteRecognizer

GetConfig

  • Method: google.cloud.speech.v2.Speech.GetConfig
  • Audit log type: Data access
  • Permissions:
    • speech.config.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.GetConfig"

GetCustomClass

  • Method: google.cloud.speech.v2.Speech.GetCustomClass
  • Audit log type: Data access
  • Permissions:
    • speech.customClasses.get - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.GetCustomClass"

GetPhraseSet

  • Method: google.cloud.speech.v2.Speech.GetPhraseSet
  • Audit log type: Data access
  • Permissions:
    • speech.phraseSets.get - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.GetPhraseSet"

GetRecognizer

  • Method: google.cloud.speech.v2.Speech.GetRecognizer
  • Audit log type: Data access
  • Permissions:
    • speech.recognizers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.GetRecognizer"

ListCustomClasses

ListPhraseSets

  • Method: google.cloud.speech.v2.Speech.ListPhraseSets
  • Audit log type: Data access
  • Permissions:
    • speech.phraseSets.list - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.ListPhraseSets"

ListRecognizers

  • Method: google.cloud.speech.v2.Speech.ListRecognizers
  • Audit log type: Data access
  • Permissions:
    • speech.recognizers.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.ListRecognizers"

Recognize

  • Method: google.cloud.speech.v2.Speech.Recognize
  • Audit log type: Data access
  • Permissions:
    • speech.customClasses.get - DATA_READ
    • speech.phraseSets.get - DATA_READ
    • speech.recognizers.recognize - DATA_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.Recognize"

StreamingRecognize

  • Method: google.cloud.speech.v2.Speech.StreamingRecognize
  • Audit log type: Data access
  • Permissions:
    • speech.customClasses.get - DATA_READ
    • speech.endpoints.get - DATA_READ
    • speech.phraseSets.get - DATA_READ
    • speech.recognizers.recognize - DATA_READ
  • Method is a long-running or streaming operation: Streaming RPC
  • Filter for this method: protoPayload.methodName="google.cloud.speech.v2.Speech.StreamingRecognize"

UndeleteCustomClass

UndeletePhraseSet

UndeleteRecognizer

UpdateConfig

UpdateCustomClass

UpdatePhraseSet

UpdateRecognizer

Methods that don't produce audit logs

A method might not produce audit logs for one or more of the following reasons:

  • It is a high volume method involving signifcant log generation and storage costs.
  • It has low auditing value.
  • Another audit or platform log already provides method coverage.

The following methods don't produce audit logs:

  • google.cloud.speech.v1.Adaptation.CreateCustomClass
  • google.cloud.speech.v1.Adaptation.CreatePhraseSet
  • google.cloud.speech.v1.Adaptation.DeleteCustomClass
  • google.cloud.speech.v1.Adaptation.DeletePhraseSet
  • google.cloud.speech.v1.Adaptation.GetCustomClass
  • google.cloud.speech.v1.Adaptation.GetPhraseSet
  • google.cloud.speech.v1.Adaptation.ListCustomClasses
  • google.cloud.speech.v1.Adaptation.ListPhraseSet
  • google.cloud.speech.v1.Adaptation.UpdateCustomClass
  • google.cloud.speech.v1.Adaptation.UpdatePhraseSet
  • google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass
  • google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet
  • google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass
  • google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet
  • google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass
  • google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet
  • google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses
  • google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet
  • google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass
  • google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet