setDuration

public void setDuration(int duration)

Sets the duration of the voice message in seconds.

Parameters

duration

The duration of the voice message in seconds.