jaemil
jaemil
Explore posts from servers
RRailway
Created by Patricio on 9/29/2023 in #✋|help
Docker Image from Private Registry
is there any news about private docker images?
24 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
Thank you so much, it did work. now i only need to double the sample rate from 48000 to 96000. idk why the recorded audio is in slowmo..
8 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
const opusStream = receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 300,
},
});

const bufferData: Uint8Array[] = [];
opusStream
.pipe(new OpusDecodingStream())
.on("data", (data: Uint8Array) => {
bufferData.push(data);
});

opusStream.on("end", async () => {
const voiceMessage = await createVoiceMessage({
client,
bufferData,
user,
connection,
speechOptions,
});

if (voiceMessage) client.emit(SpeechEvents.speech, voiceMessage);
});
const opusStream = receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.AfterSilence,
duration: 300,
},
});

const bufferData: Uint8Array[] = [];
opusStream
.pipe(new OpusDecodingStream())
.on("data", (data: Uint8Array) => {
bufferData.push(data);
});

opusStream.on("end", async () => {
const voiceMessage = await createVoiceMessage({
client,
bufferData,
user,
connection,
speechOptions,
});

if (voiceMessage) client.emit(SpeechEvents.speech, voiceMessage);
});
this is how audioBuffer is created https://github.com/Rei-x/discord-speech-recognition/blob/main/src/bot/events/speech.ts
8 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
8 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
const client = new Client({
intents: [
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
],
});
addSpeechEvent(client, {
speechRecognition: resolveSpeechWithWhisper,
ignoreBots: true,
});
const client = new Client({
intents: [
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
],
});
addSpeechEvent(client, {
speechRecognition: resolveSpeechWithWhisper,
ignoreBots: true,
});
8 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
im using the SpeechEvents.speech event.
client.on(SpeechEvents.speech, async (msg) => {
// If bot didn't recognize speech, content will be empty
// if (!msg.content) return;

console.log("msg", msg);

console.log("audioBuffer type:", typeof msg.audioBuffer);
console.log("audioBuffer:", msg.audioBuffer);
}
client.on(SpeechEvents.speech, async (msg) => {
// If bot didn't recognize speech, content will be empty
// if (!msg.content) return;

console.log("msg", msg);

console.log("audioBuffer type:", typeof msg.audioBuffer);
console.log("audioBuffer:", msg.audioBuffer);
}
8 replies
DIAdiscord.js - Imagine an app
Created by jaemil on 3/22/2024 in #djs-voice
Problem saving audioBuffer to file - whisper api
node: v20.11.0
8 replies
RRailway
Created by jaemil on 4/28/2023 in #✋|help
Umami template doesn't work
Ok need to push something to start building, how can i mark as done?
25 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
yey its working ty
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
ok will try my luck, ty 🙂 Will come back if something isn't working properly
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
i think i found the problem: const server = https.createServer({ key: fs.readFileSync("./certs/key.pem"), cert: fs.readFileSync("./certs/cert.pem") }, app); this shouldn't work calling readFile..) will remove it
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
and not using any prebuilt auth
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
yes i think so. Home grown means like that i've coded it myself?
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
yarn run v1.22.19 $ node server.js [HPM] Proxy created: / -> https://backend.findnlink.com [HPM] Proxy rewrite rule created: "^/proxy" ~> "" MongoDB - Database connection established successfully. Findnlink Auth Server running on 0.0.0.0:8078
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
and still not working without port
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
no im using https
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
hm ok, because i had the same problem with the backend service and then i added my PORT and it worked. Ok removed it
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
sure 1 sec
26 replies
RRailway
Created by jaemil on 4/27/2023 in #✋|help
Problem with hosting authentication service
Log is printing: Findnlink Auth Server running on 0.0.0.0:3000
26 replies