MadelineProto/docs/TD_docs/constructors/voice.md

26 lines
828 B
Markdown
Raw Normal View History

---
title: voice
2017-08-25 15:05:53 +02:00
description: Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container
---
## Constructor: voice
[Back to constructors index](index.md)
2017-08-25 15:05:53 +02:00
Describes voice note. Voice must be encoded with Opus codec and must be stored inside Ogg container
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|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|
2017-09-29 15:50:59 +02:00
|voice|[file](../constructors/file.md) | Yes|File with the voice record|
### Type: [Voice](../types/Voice.md)