I am currently attempting to utilize a library for recording voice audio in angular.
https://github.com/killroywashere/ng-audio-recorder
Below is the code snippet for using it:
import { NgAudioRecorderService, OutputFormat } from 'ng-audio-recorder';
...
@Component({...})
export class AppComponent {
constructor(private audioRecorderService: NgAudioRecorderService) {
this.audioRecorderService.recorderError.subscribe(recorderErrorCase => {
// Handle Error
})
}
startRecording() {
this.audioRecorderService.startRecording();
}
stopRecording() {
this.audioRecorderService.stopRecording(outputFormat).then((output) => {
// do post output steps
}).catch(errorCase => {
// Handle Error
});
}
}
The issue arises as it fails to specify the required outputFormat and the process of playing back the recorded audio. Could someone please provide guidance on this matter?