Skip to content

weixin-ts / bot/src / VoiceItem

Interface: VoiceItem

Defined in: bot/src/types.ts:99

Properties

bits_per_sample?

optional bits_per_sample?: number

Defined in: bot/src/types.ts:103


encode_type?

optional encode_type?: number

Defined in: bot/src/types.ts:102

Voice encoding: 1=pcm 2=adpcm 3=feature 4=speex 5=amr 6=silk 7=mp3 8=ogg-speex


media?

optional media?: CDNMedia

Defined in: bot/src/types.ts:100


playtime?

optional playtime?: number

Defined in: bot/src/types.ts:107

Voice duration in milliseconds


sample_rate?

optional sample_rate?: number

Defined in: bot/src/types.ts:105

Sample rate in Hz


text?

optional text?: string

Defined in: bot/src/types.ts:109

Voice-to-text content

Released under the MIT License.