prepareSoundAnnotationForSharing

open fun prepareSoundAnnotationForSharing(@NonNull context: Context, @NonNull soundAnnotation: SoundAnnotation): Single<Uri>

Extracts audio data embedded in a SoundAnnotation to a directory backed by . Audio data is written as a WAV file.

Scheduler:
Method does not operate by default on a particular Scheduler.

Return

Single emitting Uri that can be used for sharing the sound annotation to other apps or an error if the audio data could not be exported.

Parameters

soundAnnotation

Sound annotation that should be shared.


open fun prepareSoundAnnotationForSharing(@NonNull context: Context, @NonNull soundAnnotation: SoundAnnotation, @Nullable fileName: String): Single<Uri>

Extracts audio data embedded in a SoundAnnotation to a directory backed by . Audio data is written as a WAV file.

Scheduler:
Method does not operate by default on a particular Scheduler.

Return

Single emitting Uri that can be used for sharing the sound annotation to other apps or an error if the audio data could not be exported.

Parameters

soundAnnotation

Sound annotation that should be shared.

fileName

Optional file name used for sharing the wave file (this is the shared file name as seen by other apps).