We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
音声認識字幕ちゃん https://www.sayonari.com/trans_asr/index_asr.html
以前はごく単純に翻訳をTextで返す実装だったが、20231216版として翻訳回数も扱えるようJSONオブジェストで返す仕様が追加されている。VACでは翻訳Textしか扱っていないが、GAS翻訳モジュールの互換性向上は試用や相互利用するユーザーにメリットとなるので対応を追加したい。
simple ver. (既存形式GAS実装全体)
function doGet(e) { const params = e.parameter var translatedText = LanguageApp.translate(params.text, params.source, params.target); const output = ContentService.createTextOutput(); output.setMimeType(ContentService.MimeType.JSON); output.setContent(translatedText); return output; }
音声認識字幕ちゃん20231216 ver. (追加形式return部)
const output = ContentService.createTextOutput(); var result = { translatedText: translatedText, translatedCount: timestamps.length // 翻訳回数 }; return output.setMimeType(ContentService.MimeType.JSON).setContent(JSON.stringify(result));
The text was updated successfully, but these errors were encountered:
usagi
No branches or pull requests
音声認識字幕ちゃん https://www.sayonari.com/trans_asr/index_asr.html
以前はごく単純に翻訳をTextで返す実装だったが、20231216版として翻訳回数も扱えるようJSONオブジェストで返す仕様が追加されている。VACでは翻訳Textしか扱っていないが、GAS翻訳モジュールの互換性向上は試用や相互利用するユーザーにメリットとなるので対応を追加したい。
simple ver. (既存形式GAS実装全体)
音声認識字幕ちゃん20231216 ver. (追加形式return部)
The text was updated successfully, but these errors were encountered: