add downsampled portal wav to repo
This commit is contained in:
parent
d9400fdb64
commit
6a74ca9910
3 changed files with 2 additions and 2 deletions
BIN
blackportal1000.wav
Normal file
BIN
blackportal1000.wav
Normal file
Binary file not shown.
|
|
@ -17,7 +17,7 @@ const getStanza = async (register) => {
|
||||||
return randomStanza[0].text;
|
return randomStanza[0].text;
|
||||||
};
|
};
|
||||||
// Play portal wave PCM data and set bands
|
// Play portal wave PCM data and set bands
|
||||||
const fileData = fs.readFileSync("/home/grace/blackportal1000.wav");
|
const fileData = fs.readFileSync("/home/grace/portal/blackportal1000.wav");
|
||||||
const wavFileInfo = WavFileDecoder.getWavFileInfo(fileData);
|
const wavFileInfo = WavFileDecoder.getWavFileInfo(fileData);
|
||||||
const audioData = WavFileDecoder.decodeWavFile(fileData);
|
const audioData = WavFileDecoder.decodeWavFile(fileData);
|
||||||
const totalSamples = wavFileInfo.chunkInfo.filter((ci) => ci.chunkId === "data")[0].dataLength;
|
const totalSamples = wavFileInfo.chunkInfo.filter((ci) => ci.chunkId === "data")[0].dataLength;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const getStanza = async (register: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Play portal wave PCM data and set bands
|
// Play portal wave PCM data and set bands
|
||||||
const fileData = fs.readFileSync("/home/grace/blackportal1000.wav");
|
const fileData = fs.readFileSync("/home/grace/portal/blackportal1000.wav");
|
||||||
const wavFileInfo = WavFileDecoder.getWavFileInfo(fileData);
|
const wavFileInfo = WavFileDecoder.getWavFileInfo(fileData);
|
||||||
const audioData = WavFileDecoder.decodeWavFile(fileData);
|
const audioData = WavFileDecoder.decodeWavFile(fileData);
|
||||||
const totalSamples = wavFileInfo.chunkInfo.filter(
|
const totalSamples = wavFileInfo.chunkInfo.filter(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue