Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to customize recorder parameters #114

Merged
merged 13 commits into from
Sep 14, 2019
Merged

Conversation

hyochan
Copy link
Owner

@hyochan hyochan commented Sep 12, 2019

Closes #101

Implement ability to add parameters to recorder to customize audio quality.

    const audioSet: AudioSet = {
      AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
      AudioSourceAndroid: AudioSourceAndroidType.MIC,
      AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,
      AVNumberOfChannelsKeyIOS: 2,
      AVFormatIDKeyIOS: AVEncodingOption.aac,
    };

    const uri = await this.audioRecorderPlayer.startRecorder(path, audioSet);
    this.audioRecorderPlayer.addRecordBackListener((e: any) => {
      this.setState({
        recordSecs: e.current_position,
        recordTime: this.audioRecorderPlayer.mmssss(
          Math.floor(e.current_position),
        ),
      });
    });

Fixes #101
Fixes #99
Fixes #98
Fixes #78
Fixes #71

@hyochan hyochan merged commit e110025 into master Sep 14, 2019
@hyochan hyochan deleted the feat/recorder_params branch September 14, 2019 18:31
@Dlozlami
Copy link

Issue 99 is not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment