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.
Nyheder
Version 1.0
First release
Hvad den gør
42 handlinger-
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.
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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.
*/
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra te55eract
Du vil måske også kunne lide
Annonce