public static boolean isAudio(String mimeType){
  if (mimeType != null) {
    if (mimeType.startsWith("audio/"))     return true;
 else     return false;
  }
 else   return false;
}

public static boolean isAudio ( String mimeType ) { if ( mimeType != null ) { if ( mimeType . startsWith ( "audio/" ) ) return true ; else return false ; } else return false ; }
returns true if the mime type is a standard audio mime type
