> For the complete documentation index, see [llms.txt](https://textav.gitbook.io/firebase-react-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://textav.gitbook.io/firebase-react-notes/stt/other/enablewordtimeoffsets.md).

# enableWordTimeOffsets

worth noting that time stamps don't come as default, you need to add this attribute to config`enableWordTimeOffsets` &#x20;

same thing for punctuaiton with `enableAutomaticPunctuation`

and speaker diarization `enableSpeakerDiarization`

```
const config = {
  enableWordTimeOffsets: true,
  enableAutomaticPunctuation: true,
  enableSpeakerDiarization: true,
  encoding: encoding,
  sampleRateHertz: sampleRateHertz,
  languageCode: languageCode,
};
```

more details and full code example see

<https://cloud.google.com/speech-to-text/docs/async-time-offsets>

<https://cloud.google.com/speech-to-text/docs/automatic-punctuation>

<https://cloud.google.com/speech-to-text/docs/multiple-voices>
