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

Speech framework tips

Speech framework tips

speech framework tips

Ryo Tsuzukihashi

July 10, 2020
Tweet

More Decks by Ryo Tsuzukihashi

Other Decks in Programming

Transcript

  1. ࣮૷ 3FRVFTUͷ݁ՌΛॲཧ speechRecognizer?.recognitionTask(with: speechRequest, resultHandler: { (speechResult, error) in if

    speechResult.isFinal { print("Speech in the file is \ (speechResult.bestTranscription.formattedString)") }
  2. Ի੠ೝࣝ݁Ռ J04·Ͱ w ॻ͖ى͜͠ 5SBOTDSJQUJPO  ༩͑ΒΕͨԻ੠શମΛςΩετͰදͨ͠΋ͷ w ୅ସղऍ "MUFSOBUJWFJOUFSQSFUBUJPOT

     ॻ͖ى͜͠ͷҟͳΔղऍ w ৴པ౓ $POpEFODFMFWFMT  ॻ͖ى͕͜͠Ϣʔβʔͷ4QFFDIͱਖ਼֬ʹҰக͢Δͱ͍͏৴པ౓ w λΠϛΠϯά৘ใ 5JNJOHJOGPSNBUJPO  ೝࣝͨ͠Ի੠ͷதͰ࿩͍ͯͨ͠୯ޠͳͲͷ։͔࢝Βͷඵ਺
  3. Ի੠ೝࣝ݁Ռ J04Ҏ߱ w ଎౓ TQFBLJOH3BUF  ෼ؒʹ࿩͞ΕΔݴ༿ͷ਺ w ฏۉٳࢭ࣌ؒ BWFSBHF1BVTF%VSBUJPO

     ୯ޠؒͷҰ࣌తͳఀࢭ࣌ؒͷฏۉɺ୯Ґ͸ඵ w Ի੠ղੳػೳ SFTVMUCFTU5SBOTDSJQUJPOTFHNFOUT͔Βऔಘ
  4. 4'7PJDF"OBMZUJDT J04Ҏ߱ w +JUUFSϐονͷมԽΛɺϑϨʔϜͷجຊप೾਺ͷύʔηϯςʔδͰදͨ͠΋ͷ TFHNFOUWPJDF"OBMZUJDT KJUUFSBDPVTUJD'FBUVSF7BMVF1FS'SBNF w 4IJNNFS֤ϑϨʔϜʹ͓͚Δ੠ྔ҆ఆੑʢৼ෯ʣͷมԽΛσγϕϧͰද͢ TFHNFOUWPJDF"OBMZUJDT TIJNNFSBDPVTUJD'FBUVSF7BMVF1FS'SBNF

    w 1JUDI֤ϑϨʔϜʹ͓͚ΔԻ৭ʢجຊप೾਺ʣͷߴ௿Λର਺Ͱදͨ͠΋ͷ TFHNFOUWPJDF"OBMZUJDT QJUDIBDPVTUJD'FBUVSF7BMVF1FS'SBNF w 7PJDJOHεϐʔνͷதͰൃੜͨ͠ԻҬ < >ͷൣғͷ֬཰Ͱදͨ͠΋ͷ TFHNFOUWPJDF"OBMZUJDT WPJDJOHBDPVTUJD'FBUVSF7BMVF1FS'SBNF
  5. ࣗ෼ͷ੿͍ൃԻͰࢼͯ͠Έͨ w ʮڞ༗ձʯൃԻ ग़ྗ CFTU5SBOTDSJQUJPO GPSNBUUFE4USJOH ڞ༗ձ TQFBLJOH3BUF  BWFSBHF1BVTF%V

    SBUJPO  TFHNFOU   BMUFSOBUJWF4VCTUSJOH T ࠓ೔༠ս ڞ༗ճ DPOpEFODF   UJNJOH