Mercurial Hosting > lang
comparison src/tts.mp3.luan @ 16:f5425a3c1898
add languages
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 30 Jul 2025 10:38:27 -0600 |
parents | 2d4b3f003ec2 |
children | d3f5448743bf |
comparison
equal
deleted
inserted
replaced
15:49e9138b5460 | 16:f5425a3c1898 |
---|---|
31 } | 31 } |
32 return uri(url,options) | 32 return uri(url,options) |
33 end | 33 end |
34 | 34 |
35 return function() | 35 return function() |
36 local lang = Http.request.parameters.lang or error() | |
36 local text = Http.request.parameters.text or error() | 37 local text = Http.request.parameters.text or error() |
37 local input = text_to_speech("ja-JP",text) | 38 local input = text_to_speech(lang,text) |
38 Http.response.binary_writer().write_from(input) | 39 Http.response.binary_writer().write_from(input) |
39 end | 40 end |