Write in your own editor. Hear it here.

Keep writing Fountain in Highland, iA Writer, Obsidian or VS Code. Send the file to Scriptroom and press play.

Can I write a screenplay in Obsidian, VS Code or iA Writer?

Yes, in Fountain, the plain-text screenplay format. Highland is built on it. iA Writer has a Fountain template. Obsidian has Fountain plugins, and VS Code has the Better Fountain extension. To hear each character in their own voice, send the file to Scriptroom.

How do I hear my Fountain script read aloud?

Bring the file into Scriptroom and press play. Each character gets their own voice and a narrator reads the action. Choose File (⋯ on a phone), then New script, then Import a file. A free account hears about 150 pages a month in studio voices, up to 25 of them a day.

How do I send each new draft without importing it again?

Use the API. Send the file once to make the script, then send it again whenever you want to hear the new draft. Notes left on lines you didn’t change stay on them.

Make an API key first. Save this as send.py and run python3 send.py draft.fountain each time you want to hear the draft. The first run makes the script. Every run after replaces it. Replace YOUR_KEY with your key.

These examples use Python 3, which you may need to install first.

send.py
import json, os, sys, urllib.error, urllib.request

KEY = "YOUR_KEY"
BASE = "https://www.scriptroom.app/api/v1/scripts"

def call(method, url, body=None):
    req = urllib.request.Request(
        url, data=body, method=method, headers={
            "Authorization": "Bearer " + KEY,
            "Content-Type": "text/x-fountain",
            "Accept": "application/json"})
    try:
        with urllib.request.urlopen(req) as res:
            return json.loads(res.read())
    except urllib.error.HTTPError as e:
        if e.code == 401:
            sys.exit("Scriptroom didn't accept your key. "
                     "Check that you replaced YOUR_KEY with your key, "
                     "and that the key hasn't been revoked.")
        if e.code == 402:
            sys.exit("Scriptroom didn't make the script. "
                     "Free holds three scripts, archived ones "
                     "included. Delete down to two in Scriptroom, "
                     "or go Paid for no limit, then run this again.")
        if e.code == 404:
            sys.exit("Scriptroom has no script for this file "
                     "any more. Delete " + saved + " and run "
                     "this again to send it as a new script.")
        raise

path = sys.argv[1]
# the script's id and seq, kept next to your file
saved = path + ".scriptroom"
text = open(path, "rb").read()

if not os.path.exists(saved):
    script = call("POST", BASE, text)
else:
    script = json.load(open(saved))
    if "--replace" in sys.argv:
        script["seq"] = call("GET", BASE + "/" + script["id"])["seq"]
    try:
        script["seq"] = call("PUT", BASE + "/" + script["id"] +
            "?baseSeq=" + str(script["seq"]), text)["seq"]
    except urllib.error.HTTPError as e:
        if e.code != 409:
            raise
        sys.exit("The script changed in Scriptroom since your last "
                 "send, so nothing was sent. Copy anything you want "
                 "to keep into your file, then run this again with "
                 "--replace.")

json.dump({"id": script["id"], "seq": script["seq"]}, open(saved, "w"))
print("Sent. Open it in Scriptroom and press play.")

Which copy is the master?

Your file. Each send replaces the whole script in Scriptroom with what’s in your file, so make your changes in your editor. If the script was changed in Scriptroom since your last send, the send stops and nothing is overwritten. Copy what you want to keep into your file, then send with --replace. Renaming the script in Scriptroom doesn’t stop a send, but the next send puts back the title from your file’s title page, if it has one.

Will my formatting come across?

Yes, for standard Fountain: scene headings, action, characters, dialogue, parentheticals, transitions, dual dialogue, lyrics, sections, the title page, and notes in double brackets on a line of their own. Synopses don’t come across, and the boneyard stays out.

Does Scriptroom change my words?

No. It reads what’s in your file. It doesn’t write lines, and the voices don’t add any.