nosnia-audio-recorder 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,14 +204,15 @@ RCT_EXPORT_METHOD(startRecording:(NSDictionary *)options
204
204
 
205
205
  // Create recording settings dictionary with safety checks
206
206
  @try {
207
- // Use ILBC codec which is universally supported on iOS
208
- // AVAudioRecorder doesn't support direct AAC encoding on all devices
207
+ // Use Linear PCM - most basic, universally supported format
209
208
  NSDictionary *recordingSettings = @{
210
- AVFormatIDKey: @(kAudioFormatiLBC),
211
- AVSampleRateKey: @(8000), // ILBC requires 8000 Hz
209
+ AVFormatIDKey: @(kAudioFormatLinearPCM),
210
+ AVSampleRateKey: @(16000),
212
211
  AVNumberOfChannelsKey: @(1),
213
- AVEncoderBitRateKey: @(15400),
214
- AVEncoderAudioQualityKey: @(AVAudioQualityMin)
212
+ AVLinearPCMBitDepthKey: @(16),
213
+ AVLinearPCMIsBigEndianKey: @(NO),
214
+ AVLinearPCMIsNonInterleaved: @(NO),
215
+ AVEncoderAudioQualityKey: @(AVAudioQualityLow)
215
216
  };
216
217
 
217
218
  // Validate settings dictionary created successfully
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nosnia-audio-recorder",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "This is a modern audio recorder which actually works cross platform",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",