Sha256: c9db9761151bc82c0aa94e4005320954018552f984e93d74632c939b8d650b24
Contents?: true
Size: 586 Bytes
Versions: 11
Compression:
Stored size: 586 Bytes
Contents
# lib/ai_client/speak.rb class AiClient ###################################### # OmniAI Params # input [String] required # model [String] required # voice [String] required # speed [Float] optional # format [String] optional (default "aac") # aac mp3 flac opus pcm wav # # @yield [output] optional # # @return [Tempfile``] def speak(text, **params) call_with_middlewares(:speak_without_middlewares, text, **params) end def speak_without_middlewares(text, **params) @client.speak(text, model: @model, **params) end end
Version data entries
11 entries across 11 versions & 1 rubygems