检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Audio Input Module Audio Collector Reading Audio Data Example - Input
Audio Input Module Audio Collector Reading Audio Data Example - Input
Audio Input Introduction Constructing Audio Collectors Reading Audio Data
Playing an Audio File This API is used to play a local audio file in AAC format. Connect a headset or sound box to the audio output port of the HiLens Kit device. You can hear the sound calling this API. API calling hilens.play_aac_file(file_path, vol) Parameter description Table
Playing an Audio File This API is used to play a local audio file in AAC format. Connect a headset or sound box to the audio output port of the HiLens Kit device. You can hear the sound calling this API. API calling hilens.play_aac_file(file_path, vol) Parameter description Table
Playing an Audio File This section describes how to play a local audio file in AAC format. Connect a headset or sound box to the audio output port of the HiLens Kit device. You can hear the sound calling this API. API calling HiLensEC PlayAacFile(const std::string filePath, int vol
Constructing Audio Collectors Local Audio File Construct an audio collector. If the audio collector fails to be created, you can view skill logs or output to locate the fault. The local microphone uses the default parameters to collect data. The sampling rate is 44100, bit width is
Audio Collector This API is used to construct an audio collector to obtain audio data from local microphones or audio files. API calling 1.0.8 or later hilens.AudioCapture(file_path) 1.1.2 or later hilens.AudioCapture(sample_rate, bit_width, nSamples, sound_mode) Parameter description
Audio Collector This API is used to construct an audio collector to obtain audio data from local microphones or audio files. API calling 1.0.8 or later hilens.AudioCapture(file_path) 1.1.2 or later hilens.AudioCapture(sample_rate, bit_width, nSamples, sound_mode) Parameter description
Reading Audio Data This API is used to read n frames of audio data. Only 1.0.8 and later firmware versions are supported. API calling hilens.AudioCapture.read(nFrames) Parameter description Table 1 Parameters Parameter Mandatory Type Description nFrames No Integer Number of frames
Reading Audio Data This API is used to read n frames of audio data. Only 1.0.8 and later firmware versions are supported. API calling hilens.AudioCapture.read(nFrames) Parameter description Table 1 Parameters Parameter Mandatory Type Description nFrames No Integer Number of frames
Reading Audio Data This section describes how to read one or more frames of audio. Only 1.0.8 and later firmware versions are supported. API calling virtual int hilens::AudioCapture::Read(AudioFrame &frames, int n=1) Parameter description The AudioFrame structure is defined as follows