Choose a Media API | AIUI | Rokid

AIUI provides audio playback, short sound effects, audio processing, video playback, media capture, and media library access. Start with the task you want to complete, th…

Choose a Media API

AIUI provides audio playback, short sound effects, audio processing, video playback, media capture, and media library access. Start with the task you want to complete, then open the corresponding page for examples and the full API.

Choose by Task

If you want toChoose
Play music, a local audio file, or audio data as it arrivesAudio Playback
Play short local sounds such as button clicks and prompts repeatedlyShort Sound Effects (Sound)
Generate sound, play PCM data, or analyse microphone volume, waveforms, and frequency dataAudio Processing (Web Audio)
Play video in a page and control its playback stateVideo Playback
Use a microphone or camera to take photos or record audio and videoMedia Capture
Browse, read, or save images and audio in the system media libraryMedia Library
Select a microphone mode or record system playback audioSelect a Recording Source

Continue Reading

  • Audio Playback: Use AudioPlayer to play local audio or audio data as it arrives.
  • Short Sound Effects (Sound): Use the lightweight Sound API for button clicks and prompt sounds.
  • Audio Processing (Web Audio): Generate sound, play PCM data, adjust sound, or analyse microphone volume, waveforms, and frequency data.
  • Video Playback: See the <video> component and its VideoContext playback controls.
  • Media Capture: Use navigator.mediaDevices, ImageCapture, MediaRecorder, and wx-style APIs to take photos or record audio and video.
  • Media Library: Browse, read, and save images and audio in the system media library.