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
- Method:
google.cloud.speech.v2.Speech.BatchRecognize
- Audit log type: Data access
- Permissions:
speech.recognizers.recognize - DATA_READ
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.BatchRecognize"
CreateCustomClass
- Method:
google.cloud.speech.v2.Speech.CreateCustomClass
- Audit log type: Data access
- Permissions:
speech.customClasses.create - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.CreateCustomClass"
CreatePhraseSet
- Method:
google.cloud.speech.v2.Speech.CreatePhraseSet
- Audit log type: Data access
- Permissions:
speech.phraseSets.create - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.CreatePhraseSet"
CreateRecognizer
- Method:
google.cloud.speech.v2.Speech.CreateRecognizer
- Audit log type: Admin activity
- Permissions:
speech.recognizers.create - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.CreateRecognizer"
DeleteCustomClass
- Method:
google.cloud.speech.v2.Speech.DeleteCustomClass
- Audit log type: Data access
- Permissions:
speech.customClasses.delete - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.DeleteCustomClass"
DeletePhraseSet
- Method:
google.cloud.speech.v2.Speech.DeletePhraseSet
- Audit log type: Data access
- Permissions:
speech.phraseSets.delete - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.DeletePhraseSet"
DeleteRecognizer
- Method:
google.cloud.speech.v2.Speech.DeleteRecognizer
- Audit log type: Admin activity
- Permissions:
speech.recognizers.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.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
- Method:
google.cloud.speech.v2.Speech.ListCustomClasses
- Audit log type: Data access
- Permissions:
speech.customClasses.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.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
- Method:
google.cloud.speech.v2.Speech.UndeleteCustomClass
- Audit log type: Data access
- Permissions:
speech.customClasses.undelete - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UndeleteCustomClass"
UndeletePhraseSet
- Method:
google.cloud.speech.v2.Speech.UndeletePhraseSet
- Audit log type: Data access
- Permissions:
speech.phraseSets.undelete - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UndeletePhraseSet"
UndeleteRecognizer
- Method:
google.cloud.speech.v2.Speech.UndeleteRecognizer
- Audit log type: Admin activity
- Permissions:
speech.recognizers.undelete - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UndeleteRecognizer"
UpdateConfig
- Method:
google.cloud.speech.v2.Speech.UpdateConfig
- Audit log type: Admin activity
- Permissions:
speech.config.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UpdateConfig"
UpdateCustomClass
- Method:
google.cloud.speech.v2.Speech.UpdateCustomClass
- Audit log type: Data access
- Permissions:
speech.customClasses.update - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UpdateCustomClass"
UpdatePhraseSet
- Method:
google.cloud.speech.v2.Speech.UpdatePhraseSet
- Audit log type: Data access
- Permissions:
speech.customClasses.get - DATA_READ
speech.phraseSets.update - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.UpdatePhraseSet"
UpdateRecognizer
- Method:
google.cloud.speech.v2.Speech.UpdateRecognizer
- Audit log type: Admin activity
- Permissions:
speech.recognizers.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.speech.v2.Speech.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