UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

10 lines (9 loc) 290 B
//#region src/core/utils/genSendContent.ts const genSendContent = (header, data) => { const content = []; for (const [key, value] of Object.entries(header)) content.push(`${key}:${value}`); content.push("", data); return content.join("\r\n"); }; //#endregion export { genSendContent };