Auto-sync: 2026-03-02 08:00:02
This commit is contained in:
5
workflows/u/admin/alexa_speak.script.lock
Normal file
5
workflows/u/admin/alexa_speak.script.lock
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {}
|
||||
}
|
||||
//bun.lock
|
||||
<empty>
|
||||
16
workflows/u/admin/alexa_speak.script.yaml
Normal file
16
workflows/u/admin/alexa_speak.script.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
summary: Echo デバイスに TTS で読み上げ
|
||||
description: 指定した Echo デバイスにテキストを読み上げさせる
|
||||
lock: '!inline u/admin/alexa_speak.script.lock'
|
||||
kind: script
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
device:
|
||||
type: string
|
||||
description: デバイス名またはシリアル番号
|
||||
text:
|
||||
type: string
|
||||
description: 読み上げるテキスト
|
||||
required:
|
||||
- device
|
||||
- text
|
||||
12
workflows/u/admin/alexa_speak.ts
Normal file
12
workflows/u/admin/alexa_speak.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export async function main(device: string, text: string) {
|
||||
const res = await fetch("http://alexa_api:3500/speak", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ device, text }),
|
||||
});
|
||||
if (!res.ok) {
|
||||
const err = await res.json().catch(() => ({}));
|
||||
throw new Error("alexa-api error " + res.status + ": " + JSON.stringify(err));
|
||||
}
|
||||
return await res.json();
|
||||
}
|
||||
@@ -19,6 +19,7 @@ locks:
|
||||
f/weather/weather_sync__flow+気象データ取得・同期.py: 86c9953ec7346601eaa13c681e2db5c01c9a5b4b45a3c47e8667ad3c47557029
|
||||
g/all/setup_app__app+__app_hash: d71add32e14e552d1a4c861c972a50d9598b07c0af201bbadec5b59bbd99d7e3
|
||||
g/all/setup_app__app+change_account.deno.ts: 3c592cac27e9cdab0de6ae19270bcb08c7fa54355ad05253a12de2351894346b
|
||||
u/admin/alexa_speak: ea70d299e60bf552a219fbfb1b03a90f20d99896ae1e4e66f40c38b85a9c0ca1
|
||||
u/admin/hub_sync: aaf9fd803fa229f3029d1bb02bbe3cc422fce680cad39c4eec8dd1da115de102
|
||||
u/antigravity/git_sync__flow+__flow_hash: 5a7194ef6bf1ce5529e70ae74fdb4cd05a0da662c78bfa355bb7e98698689ae6
|
||||
u/antigravity/git_sync__flow+a.sh: ac7fdc83548f305fed33389129b79439e0c40077ed39a410477c77d08dca0ca9
|
||||
|
||||
Reference in New Issue
Block a user