MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / timing_headers

Function timing_headers

app/server/runtime.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 response.content_type = "text/event-stream; charset=utf-8";
217 response.headers.emplace("X-Accel-Buffering", "no");
218 response.stream_body = std::move(stream);
219 return response;
220}
221
222HttpResponse chunked_audio_response(std::function<void(HttpStreamWriter &)> stream) {
223 HttpResponse response;
224 response.status = 200;
225 response.content_type = "application/octet-stream";
226 response.stream_body = std::move(stream);
227 return response;
228}
229
230bool is_wav_upload_filename(const std::string & filename) {

Callers 1

handle_speechMethod · 0.85

Calls 3

audio_rtfFunction · 0.85
audio_duration_msFunction · 0.70
to_stringFunction · 0.50

Tested by

no test coverage detected