{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "transcribe-file",
        "name": "Transcribe a File",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564630,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "61ee148acac5ea32f93190d675d150f1a7a60cd09acc6eb90fdd18d3172fe3de"
        },
        "signature": "p0IwmTnRyjIknPNUSZw8Dc8Sqcr/8z/BSklsoH/F/XFjjrMHmiSaIwjSJQij3bwbu1LjTKnaN0lACB3YShOQDg==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "transcribe-file",
        "name": "Transcribe a File",
        "description": "Drop a voice memo or any audio file (on iPhone, tap to choose one) and get its text, made on this device. Copy it with one click.",
        "icon": "waveform",
        "permissions": [
            "speech.transcribe",
            "clipboard.write"
        ],
        "state": {
            "text": {
                "type": "text",
                "default": ""
            },
            "name": {
                "type": "text",
                "default": ""
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "drop": "Drop an audio file",
                            "on": "transcribe",
                            "accept": [
                                "audio"
                            ],
                            "hint": "Voice memos, m4a, mp3, wav or aiff",
                            "size": "l",
                            "when": "$text | count | map:{0:true, else:false}"
                        },
                        {
                            "drop": "Drop another file",
                            "on": "transcribe",
                            "accept": [
                                "audio"
                            ],
                            "size": "s",
                            "when": "$text"
                        },
                        {
                            "column": [
                                {
                                    "cell": "$name",
                                    "subtitle": "Made on this device",
                                    "leading": "text.quote",
                                    "trailing": {
                                        "row": [
                                            {
                                                "button": "Copy",
                                                "on": "copy",
                                                "icon": "doc.on.doc",
                                                "icon_only": true,
                                                "style": "plain"
                                            },
                                            {
                                                "button": "Clear",
                                                "on": "clear",
                                                "icon": "xmark",
                                                "icon_only": true,
                                                "style": "plain"
                                            }
                                        ],
                                        "gap": "xs"
                                    }
                                },
                                {
                                    "text": "$text",
                                    "lines": 12
                                }
                            ],
                            "style": "inset",
                            "when": "$text"
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "actions": {
            "transcribe": {
                "timeout": 600,
                "steps": [
                    {
                        "speech.transcribe": "$args.files.0.path",
                        "as": "heard"
                    },
                    {
                        "set": {
                            "text": "$heard.text | default:'(No speech found)'",
                            "name": "$args.files.0.name"
                        }
                    }
                ]
            },
            "copy": {
                "steps": [
                    {
                        "clipboard.write": {
                            "text": "$text"
                        }
                    }
                ]
            },
            "clear": {
                "steps": [
                    {
                        "set": {
                            "text": "",
                            "name": ""
                        }
                    }
                ]
            }
        },
        "views": {
            "menubar": {
                "icon": "waveform",
                "card": "main"
            },
            "floating": {
                "card": "main",
                "width": "default"
            },
            "phone": {
                "card": "main"
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"transcribe-file\",\n  \"name\": \"Transcribe a File\",\n  \"description\": \"Drop a voice memo or any audio file (on iPhone, tap to choose one) and get its text, made on this device. Copy it with one click.\",\n  \"icon\": \"waveform\",\n  \"permissions\": [\n    \"speech.transcribe\",\n    \"clipboard.write\"\n  ],\n  \"state\": {\n    \"text\": {\n      \"type\": \"text\",\n      \"default\": \"\"\n    },\n    \"name\": {\n      \"type\": \"text\",\n      \"default\": \"\"\n    }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"drop\": \"Drop an audio file\",\n            \"on\": \"transcribe\",\n            \"accept\": [\n              \"audio\"\n            ],\n            \"hint\": \"Voice memos, m4a, mp3, wav or aiff\",\n            \"size\": \"l\",\n            \"when\": \"$text | count | map:{0:true, else:false}\"\n          },\n          {\n            \"drop\": \"Drop another file\",\n            \"on\": \"transcribe\",\n            \"accept\": [\n              \"audio\"\n            ],\n            \"size\": \"s\",\n            \"when\": \"$text\"\n          },\n          {\n            \"column\": [\n              {\n                \"cell\": \"$name\",\n                \"subtitle\": \"Made on this device\",\n                \"leading\": \"text.quote\",\n                \"trailing\": {\n                  \"row\": [\n                    {\n                      \"button\": \"Copy\",\n                      \"on\": \"copy\",\n                      \"icon\": \"doc.on.doc\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\"\n                    },\n                    {\n                      \"button\": \"Clear\",\n                      \"on\": \"clear\",\n                      \"icon\": \"xmark\",\n                      \"icon_only\": true,\n                      \"style\": \"plain\"\n                    }\n                  ],\n                  \"gap\": \"xs\"\n                }\n              },\n              {\n                \"text\": \"$text\",\n                \"lines\": 12\n              }\n            ],\n            \"style\": \"inset\",\n            \"when\": \"$text\"\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    }\n  ],\n  \"actions\": {\n    \"transcribe\": {\n      \"timeout\": 600,\n      \"steps\": [\n        {\n          \"speech.transcribe\": \"$args.files.0.path\",\n          \"as\": \"heard\"\n        },\n        {\n          \"set\": {\n            \"text\": \"$heard.text | default:'(No speech found)'\",\n            \"name\": \"$args.files.0.name\"\n          }\n        }\n      ]\n    },\n    \"copy\": {\n      \"steps\": [\n        {\n          \"clipboard.write\": {\n            \"text\": \"$text\"\n          }\n        }\n      ]\n    },\n    \"clear\": {\n      \"steps\": [\n        {\n          \"set\": {\n            \"text\": \"\",\n            \"name\": \"\"\n          }\n        }\n      ]\n    }\n  },\n  \"views\": {\n    \"menubar\": {\n      \"icon\": \"waveform\",\n      \"card\": \"main\"\n    },\n    \"floating\": {\n      \"card\": \"main\",\n      \"width\": \"default\"\n    },\n    \"phone\": {\n      \"card\": \"main\"\n    }\n  }\n}\n",
    "files": []
}