mp.tasks.audio.compute_word_timestamps
Stay organized with collections
Save and categorize content based on your preferences.
Computes prosody- and waveform-aligned word timestamps via the C API.
mp.tasks.audio.compute_word_timestamps(
text: str,
num_samples: int,
sample_rate_hz: int,
time_offset_sec: float = 0.0,
samples: Optional[np.ndarray] = None
) -> tuple[WordTimestamp, ...]
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-05 UTC.
[null,null,["Last updated 2026-11-05 UTC."],[],[]]