Make sure the sampling rate is 44100Hz
This commit is contained in:
parent
3fec73d556
commit
f15e4970d8
|
@ -82,7 +82,7 @@ export class FFMpegAudioExportService implements AudioExportService {
|
||||||
async export({ format }: { format: string }) {
|
async export({ format }: { format: string }) {
|
||||||
if (format === `SP`) {
|
if (format === `SP`) {
|
||||||
const outFileName = `${this.outFileNameNoExt}.raw`;
|
const outFileName = `${this.outFileNameNoExt}.raw`;
|
||||||
await this.ffmpegProcess.transcode(this.inFileName, outFileName, '-f s16be');
|
await this.ffmpegProcess.transcode(this.inFileName, outFileName, '-f s16be -ar 44100');
|
||||||
let { data } = await this.ffmpegProcess.read(outFileName);
|
let { data } = await this.ffmpegProcess.read(outFileName);
|
||||||
return data.buffer;
|
return data.buffer;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue