AUTOMATION Guide 07

TurboScribe Download: Installing the Node.js Automation Script

TurboScribe download guide: what is in the ZIP, installing Node.js and Puppeteer, configuring .env and Google Drive, and fixing common errors.

TurboScribe Download: Installing the Node.js Automation Script

The TurboScribe download package linked on this site is not a desktop app. It is a compact, open-source Node.js project that automates the TurboScribe website with Puppeteer, the browser automation library maintained by the Chrome team. One script uploads a single recording and exports its transcript; a second script works through an entire Google Drive folder of recordings. This guide explains what each file does, how to install and configure it, how to adapt it to your own files and language, and how to keep it running when the website changes.

What is in the ZIP

After you download the ZIP and extract it, you get a folder called turboScribe-script-main with these files:

FilePurpose
turboScribe.jsSigns in, uploads one audio file, starts transcription, waits for it to finish, and exports the transcript.
turboBulk.jsReads a Google Drive folder, downloads new recordings, uploads them one by one into numbered TurboScribe folders, and logs what it has done.
package.jsonDeclares three dependencies: puppeteer, dotenv and googleapis.
README.mdShort setup notes from the author.
transcribedFiles.txtA log of file names already processed by the bulk script, so they are skipped next time.
folderNumber.txt, previousFolder.txtCounters the bulk script uses to create and reuse folders inside TurboScribe.
.gitignoreKeeps .env, key.json, audio files and node_modules out of version control.

The two scripts together are only around five hundred lines, which makes the project easy to read and audit before you run it.

Requirements

  • Node.js 18 or newer with npm. The current LTS release from nodejs.org is the safest choice.
  • Around 1 GB of free disk space for Puppeteer's bundled Chromium and the dependencies.
  • A TurboScribe account with a password. The script fills in the email and password form, so an account created only with Google sign-in needs a password added first.
  • For the bulk script only: a Google Cloud project with the Drive API enabled and a service account key.

Installing

Open a terminal in the extracted folder and install the dependencies:

npm i

This downloads Puppeteer and a matching build of Chromium. If the Chromium download is blocked by a proxy or antivirus software, run it separately once the network allows:

npx puppeteer browsers install chrome

Next, create a file called .env in the same folder with your TurboScribe credentials:

EMAIL[email protected]
PASSWORD=your-password

The dotenv package loads these values when the script starts, so they never need to appear in the code.

Running the single-file script

By default, turboScribe.js uploads a file named Recording.m4a from its own folder. Either rename your recording to match, or open the script and change the file name on the line that builds the file path with path.resolve. Then run:

node turboScribe.js

A Chromium window opens because the script launches with headless: false. You will see it work through these stages, each confirmed with a message in the terminal:

  1. Open the TurboScribe sign-in page and set an 800 × 800 viewport.
  2. Type the email and password from .env and submit the form.
  3. Count the rows in your file table so it can recognise the new one later.
  4. Click the button that opens the transcription dialog.
  5. Select the language from the dropdown. It is set to Urdu by default.
  6. Attach the audio file to the upload field.
  7. Wait until the upload progress indicator reaches 100% and disappears.
  8. Click Transcribe, then wait for a new row to appear in the table.
  9. Watch that row until the completion icon appears, which signals the transcript is ready.
  10. Open the row's menu, choose Export Transcript, tick the export option and click download.

Once you are comfortable with how it behaves, you can switch headless to true to run it without a visible window.

Changing the language

Both scripts select Urdu with a line like this:

await page.select('select[name="language"]', "Urdu");

Replace "Urdu" with the value used by the TurboScribe language dropdown for your language, for example "English" or "Portuguese". The value must match the option exactly. If you are unsure, open the dropdown in your browser's developer tools and copy the option value.

Setting up the bulk script

turboBulk.js is designed for people who collect recordings in a shared Google Drive folder, such as a research team or a podcast network. It needs read-only access to that folder through a Google service account.

Create a service account

  1. In Google Cloud Console, create a project and enable the Google Drive API.
  2. Create a service account and generate a JSON key for it.
  3. Save the key in the project folder as key.json. It is already ignored by git.
  4. In Google Drive, share the recordings folder with the service account's email address, with Viewer access.

Point the script at your folder

Open turboBulk.js and replace the folder ID with your own. The ID is the long string at the end of the folder's Drive URL. The script requests the read-only Drive scope, so it cannot change or delete anything in Drive.

What happens on each run

  • It lists every file in the folder, one hundred at a time, pausing briefly between pages to stay within API limits.
  • It compares those names against transcribedFiles.txt and keeps only new ones.
  • It downloads each new recording into a local audios folder.
  • It signs into TurboScribe and either creates a new numbered folder or reopens the previous one, using folderNumber.txt and previousFolder.txt to keep track.
  • It uploads and starts transcription for every new file in turn.
  • It appends the processed names to transcribedFiles.txt and removes the local copies of the audio.

Because of the log file, you can run the bulk script on a schedule, for example once a day, and it will only ever process recordings it has not seen before.

Keeping the script working

Browser automation depends on the structure of the web page. When TurboScribe updates its interface, a button's class or a field's name may change and the script will stop at the matching step with a timeout error. The fix is usually small.

  1. Run with headless: false and note the last message printed before the error.
  2. Open TurboScribe in your own browser, right-click the element the script was looking for, and choose Inspect.
  3. Update the selector in the script to match the new element.

Selectors based on stable attributes such as name or visible text tend to survive redesigns longer than those based on styling classes.

Responsible use

Automation is powerful, so a few principles are worth following.

  • Read the code first. It is short and readable. Never run automation scripts you have not looked at, from any source.
  • Check the terms of service. Automated access to a website may be restricted by its terms. Review TurboScribe's terms for your account type before running large batches.
  • Keep volumes reasonable. Free accounts are limited to three files a day, and the scripts do not change that. Bulk processing realistically requires a paid plan.
  • Protect secrets. Treat .env and key.json like passwords. Do not email them, upload them, or keep them in shared folders.

Useful modifications

Because the code is short and readable, small changes are easy to make. These are the adjustments people make most often.

Upload any file name from the command line

Instead of renaming every recording to Recording.m4a, you can read the file name from the command line. Replace the hard-coded name with process.argv[2] and fall back to the default when nothing is passed. You then run node turboScribe.js interview.mp3 and the script uploads that file instead.

Read the language from .env

If you switch languages often, add a line such as LANGUAGE=English to your .env file and use process.env.LANGUAGE in the select call. Your language choice then lives next to your credentials and the script itself stays unchanged.

Change the batch folder size

The bulk script groups uploads into numbered TurboScribe folders. The threshold that decides when a new folder is created is a single number near the top of the folder logic. Raise it for fewer, larger folders, or lower it to keep each folder small and easy to browse.

Run it on a schedule

On macOS and Linux, a cron entry can start the bulk script every night. On Windows, Task Scheduler does the same job. Run it headless when scheduled, and redirect the terminal output to a log file so you can see what happened each night.

0 2 * * * cd /path/to/turboScribe-script-main && node turboBulk.js >> run.log 2>&1

Keep the first scheduled runs small and check the log the next morning. Once you trust the routine, you can leave it running quietly in the background.

Common errors at a glance

ErrorLikely causeFix
Could not find ChromeChromium download failednpx puppeteer browsers install chrome
ENOENT ... Recording.m4aAudio file missing or renamedRename the file or edit the path in the script
ENOENT ... key.jsonNo service account keyAdd the key file for the bulk script
Timeout on the email fieldSite slow or layout changedCheck connection, then the selector
Stuck after loginGoogle-only account or wrong passwordAdd a password and update .env

Summary

The TurboScribe download package gives you two ready-made automations: one for a single file and one for a whole Google Drive folder. Install Node.js, run npm i, add your credentials to .env, set the file name and language, and watch the first run in a visible browser. Keep secrets out of the code, respect the service's terms, and update a selector when the site changes. With those habits, a repetitive upload routine becomes a single command.