Class: Naver::Voice
Overview
Naver Voice API
Class Method Summary collapse
-
.tts(speaker:, speed:, text:) ⇒ Binary
음성합성(Beta).
Methods inherited from Client
#connection, connection, connection=, parse
Class Method Details
.tts(speaker:, speed:, text:) ⇒ Binary
음성합성(Beta)
10 11 12 13 |
# File 'lib/naver/voice.rb', line 10 def tts(speaker:, speed:, text:) params = method(__method__).parameters.map(&:last).map { |p| [p, eval(p.to_s)] }.to_h connection.post("/v1/voice/tts.bin", params).body end |