MadelineProtoDocs/docs/TD_docs/constructors/voice.md

27 lines
901 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: voice
description: Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: voice
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|duration|[int](../types/int.md) | Yes|Duration of the voice record in seconds as defined by sender|
|waveform|[bytes](../types/bytes.md) | Yes|Waveform representation of the voice in 5-bit format|
|mime\_type|[string](../types/string.md) | Yes|MIME type of a file as defined by sender|
|voice|[file](../constructors/file.md) | Yes|File with the voice record|
### Type: [Voice](../types/Voice.md)