This message was deleted.
# sdk-rust
s
This message was deleted.
e
frame.data.len() is the number of audio samples
to know how much time in ms it represents you need to divide it by the sample rate (which is always 48khz AFAIK)
b
oh cool, thanks. something like this then ?
e
yes, and the unit of audio_len will be seconds
ex: if you have 48000 samples, and the sampling rate is 48000hz, the result is 1 (one second)
b
ahh. makes sense.
thanks again. The example makes it a lot clearer
🤘 1