0226_1.5x.mp4
Audify is a SwiftUI application designed to convert PDF books into high-quality, professional-grade audiobooks using Google's Text-to-Speech (TTS) Chirp 3 HD voices. It also features a built-in Exa search to find and import PDF books directly from the web.
You will need the following API keys and credentials:
- Exa API Key: Used for searching PDFs. Get one at exa.ai.
- OpenRouter API Key: Used for metadata extraction. Get one at openrouter.ai.
- Google Cloud TTS: This app uses Application Default Credentials (ADC) for authentication.
Update the constants in app/Audify/Services/:
ExaService.swift: SetapiKeyfor Exa.MetadataService.swift: SetapiKeyfor OpenRouter.ImageGenerationService.swift: SetapiKey(if using OpenAI/similar).
To use the high-quality Chirp 3 HD voices, the app requires a google-credentials.json file.
- Follow Google Cloud's Application Default Credentials (ADC) setup.
- If using
gcloud, run:gcloud auth application-default login
- Copy your generated
application_default_credentials.jsonfrom~/.config/gcloud/toapp/Audify/google-credentials.jsonwithin the project.
- Open
app/Audify.xcodeprojin Xcode. - Select a simulator (e.g., iPhone 16) or a connected device.
- Ensure your Team is selected in the Signing & Capabilities tab if running on a real device.
- Build and Run (Cmd + R).
- Importing from Files: Tap the
+button in the Library view and select "Add from Files" to import locally stored PDFs. - Searching Web PDFs: Tap the
+button, select "Search for PDF", and enter a search query. Preview the results and tap "Use PDF" to import. - File Sharing: The app has
UIFileSharingEnabledturned on. You can also transfer PDFs to the app via the Files app on your device by placing them in theAudifyfolder.
- Preview Failed (hostname not found): Some websites hosting PDFs may be blocked or unreachable in the simulator. Use the "Open in Safari" button to verify the link.
- TTS Errors: Ensure your Google Cloud Project has the Text-to-Speech API enabled and that your ADC credentials have the correct billing project/permissions.