Upgrade to Pro — share decks privately, control downloads, hide ads and more …

読み上げチャット+映像配信サービス作ってるけど…/I develop Text-to-Spea...

読み上げチャット+映像配信サービス作ってるけど…/I develop Text-to-Speach chat and broadcast Savice but...

果物リン

July 21, 2021
Tweet

More Decks by 果物リン

Other Decks in Technology

Transcript

  1. no!"#$'5jcklXm • Ի੠߹੒͕ඞཁɻ • ϑϩϯτͰ΍ΔʁόοΫΤϯυͰ΍Δʁ • GoogleͷText to Speech APIΛ࢖ͬͯΔ

    • Firebase Cloud FunctionsͰ͝ʹΐ͝ʹΐ • ϑϩϯτΤϯυ͸AudioλάΛॻ͖ग़͚ͩ͢
  2. wxudyrz{ const res = await this.$axios.get(BASE_URL + `tts?text=${text}`) const u8

    = new Uint8Array(res.data[0].audioContent.data) this.voices.push(arrayBufferToBase64(u8)) • new Unit8Array() ͱ͔ॳΊͯ࢖ͬͨ • arrayBufferToBase64 ͸ద౰ʹάάΕ͹Ͱͯ͘Δ͸ͣɻ