ShareShortcuts
Fork “TTS Saver”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so te55eract gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
13K
Saved
0
Actions
42
Category
Productivity
Version
1.0
Language
EN

A Batch Text-to-Speech converter that allows you to select multiple files at once and convert them to speech:

  • Accepts text, PDFs, images, clipboard, or manual entry
  • Batch processing of files
  • Extracts text using OCR if needed
  • Generates Individual audio files for each source
  • share or save using the share sheet.

What's New

Version 1.0

First release

Version History
1.0 Jul 25, 2025

First release

What it does

42 actions
  1. Set Variable
    Input
  2. If
  3. Choose from Menu
    Choose Input Source
  4. Choose from Menu
    Files
  5. Select File
  6. Choose from Menu
    Photos
  7. Select Photos
  8. Choose from Menu
    Clipboard
  9. Get Clipboard
  10. Choose from Menu
    Manual Input
  11. Ask for Input
    Enter Text
  12. Set Variable
    Input
  13. Repeat with Each
  14. Get Type
  15. If
  16. Comment
    ↓ Perform OCR on images
  17. If
  18. Extract Text from Image
  19. Split Text
  20. Combine Text
  21. Add to Variable
  22. Comment
    ↓ check if PDF and extract the text. If there is no underlying text then perform OCR on pdf
  23. If
  24. Gettextfrompdf
  25. If
  26. Extract Text from Image
  27. Add to Variable
  28. If
  29. Add to Variable
  30. Split Text
  31. Combine Text
  32. Add to Variable
  33. If
  34. Get Text from Input
  35. Add to Variable
  36. Repeat with Each
  37. Make Spoken Audio
  38. Encode Media
  39. Add to Variable
  40. Quick Look
  41. Share
  42. Comment
    _TTS_ Convert text to audio. Accepts text,pdfs, or images and makes an audio file of the spoken text. runs OCR on images runs OCR on PDFs if there is no underlying text.

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/text'
#include 'actions/sharing'
#include 'actions/photos'
#include 'actions/documents'
#define color teal
#define glyph textBubble

@Input = ShortcutInput

if !@Input {
	menu "Choose Input Source" {
	item "Files":
		selectFile(true)
	item "Photos":
		selectPhotos(true)
	item "Clipboard":
		getClipboard()
	item "Manual Input":
		prompt("Enter Text")
	}
	@Input
}

for _ in @Input {
	const Type = typeOf(@Input)
	if Type contains "Photo" || Type contains "Image" || Type contains "PDF" {
		// ↓ Perform OCR on images

		if Type contains "Photo" || Type contains "Image" {
			const TextFromImage = extractImageText(@RepeatItem)
			const SplitText = splitText(TextFromImage)
			joinText(SplitText, " ")
			@Texts
			// ↓ check if PDF and extract the text. If there is no underlying text then perform OCR on pdf

		}
		if Type contains "PDF" {
			const Text = getPDFText(@RepeatItem)
			if Text['File Size'] ==  {
				extractImageText(@RepeatItem)
				@PDFText
			} else {
				@PDFText = Text
			}
			const SplitText1 = splitText(@PDFText)
			joinText(SplitText1, " ")
			@Texts
		}
	} else {
		getText(@RepeatItem)
		@Texts
	}
}

for _ in @Texts {
	const SpokenAudio = makeSpokenAudio(@RepeatItem)
	encodeAudio(SpokenAudio)
	@AudioFiles
}
quicklook(@AudioFiles)
share(@AudioFiles)
/*
_TTS_
Convert text to audio.

Accepts text,pdfs, or images and makes an audio file of the spoken text. 

runs OCR on images
runs OCR on PDFs if there is no underlying text. 


*/
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by te55eract

See All

You Might Also Like

See All
Advertisement