RoamJS / otter

MIT License
3 stars 5 forks source link

Enable auto-sharing of speeches when retrieved, to be able to add an iframe with otter UI into Roam #8

Open Stvad opened 2 years ago

Stvad commented 2 years ago

What I want to achieve is being able to embed otter ui for the speech directly into Roam (arguably a better version of #6). If I just use the speech url now - it won't load, but if I enable sharing for the speech I get the result like:

image

So the proposal here is to allow people to opt-in to automatically enable sharing for ingested speeches, to make the iframe thing work.


example api request:

await fetch("https://otter.ai/forward/api/v1/share_speech?otid={otid}&userid={userid}", {
    "credentials": "include",
    "headers": {
        "Accept": "application/json, text/plain, */*",
        "Accept-Language": "en-US,en;q=0.5",
        "X-CLIENT-VERSION": "Otter v2.3.114",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "same-origin"
    },
    "method": "GET",
    "mode": "cors"
});
dvargas92495 commented 2 years ago

works for me! prs welcome