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.
Novidades
Versão 1.0
First release
O que ele faz
42 ações-
Set VariableInput
-
If
-
Choose from MenuChoose Input Source
-
Choose from MenuFiles
-
Select File
-
Choose from MenuPhotos
-
Select Photos
-
Choose from MenuClipboard
-
Get Clipboard
-
Choose from MenuManual Input
-
Ask for InputEnter Text
-
Set VariableInput
-
Repeat with Each
-
Get Type
-
If
-
Comment↓ Perform OCR on images
-
If
-
Extract Text from Image
-
Split Text
-
Combine Text
-
Add to Variable
-
Comment↓ check if PDF and extract the text. If there is no underlying text then perform OCR on pdf
-
If
-
Gettextfrompdf
-
If
-
Extract Text from Image
-
Add to Variable
-
If
-
Add to Variable
-
Split Text
-
Combine Text
-
Add to Variable
-
If
-
Get Text from Input
-
Add to Variable
-
Repeat with Each
-
Make Spoken Audio
-
Encode Media
-
Add to Variable
-
Quick Look
-
Share
-
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.
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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.
*/
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de te55eract
Você também pode gostar
Publicidade