ShareShortcuts
Создать форк «TTS Saver»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы te55eract получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
13K
Сохранено
0
Действия
42
Категория
Productivity
Версия
1.0
Язык
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.

Что нового

Версия 1.0

First release

История версий
1.0 25 июл 2025 г.

First release

Что делает

Действий: 42
  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.

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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. 


*/
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от te55eract

См. все

Вам также может понравиться

См. все
Реклама