]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
server : generate unique tmp filenames (#2718)
authorNETZkultur GmbH <redacted>
Mon, 13 Jan 2025 06:55:21 +0000 (07:55 +0100)
committerGitHub <redacted>
Mon, 13 Jan 2025 06:55:21 +0000 (08:55 +0200)
commit45d3faf9610050b4d19cfc7035b5f2b2c93b887c
tree6f246e057d05042b23d2278fdf20278fbdcfd152
parent2ab2eb5110018a1efd2744b7d4465209cf243e4c
 server : generate unique tmp filenames (#2718)

#Summary

This Merge Request adds a mechanism to generate unique filenames for FFmpeg conversions in whisper_server.cpp. Previously, a single fixed filename was used (e.g., whisper-server-tmp.wav), which could result in unexpected file overwrites under certain circumstances. By generating a unique filename per request, any risk of overwriting temporary files is eliminated.

#Background / Motivation
• Problem: Relying on a static filename for temporary audio files may lead to overwrites if multiple operations occur simultaneously or if the same file name is reused.
• Goal: Dynamically generate unique filenames, ensuring each request or operation uses an isolated temporary file.
examples/server/server.cpp