Get sound duration

hi everyone!

i’m trying to pass to a dynamic text field the duration of a sound in seconds.
how can i do that?

thanks