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

feat: add ability to control bitrate, samplerate and channel for audio compression #237

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

numandev1
Copy link
Owner

@numandev1 numandev1 commented Nov 12, 2023

#216

import { Audio } from 'react-native-compressor';

const result = await Audio.compress(
  'file://path_of_file/file_example_MP3_2MG.wav', 
  { quality: 'medium' }
);

// OR

const result = await Audio.compress(
  'file://path_of_file/file_example_MP3_2MG.wav',
  {
    bitrate: 64000,
    samplerate: 44100,
    channels: 1,
  }
);

@numandev1 numandev1 merged commit 1662945 into main Nov 12, 2023
6 of 7 checks passed
@numandev1 numandev1 deleted the feat/audio-manual branch November 12, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant