Class AudioExtractor

  • All Implemented Interfaces:

    
    public class AudioExtractor
    
                        

    Extracts audio from media files into EmbeddedAudioSource that is usable for creating SoundAnnotation.

    Supported formats depend on the device (see https://developer.android.com/guide/topics/media/media-formats).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      AudioExtractor(Context context, Uri contentUri) Creates audio extractor for media file at contentUri.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • AudioExtractor

        AudioExtractor(Context context, Uri contentUri)
        Creates audio extractor for media file at contentUri.
        Parameters:
        context - Context to use.
        contentUri - A media content URI with supported scheme (content:// or file://).