AI-Powered Audio Diary
Follow these steps to build the project:
git clone https://github.com/duxins/alog
brew install xcodegen
bundle install
To setup up the environment variables, copy the .env.example
file and rename it as .env
.
cp .env.example .env
Update the keys as needed within the .env file.
bundle exec bin/arkana
Finally, generate the project by running:
xcodegen
Once you’ve followed these steps, you should have a fully built project ready for development. If you encounter any issues, please open an issue in the repository.
Variable | Description | |
---|---|---|
OPENAI_KEY |
Required | Your OpenAI API key. |
HMAC_KEY |
Optional | This should be consistent with the key used on the client side. If this variable is not set, HMAC validation will not be performed. |
AI_MODEL |
Optional | Represents the default model. If not set, the model specified by the client will be used. |
Constants.swift
file.api_base_url
constant to point to the URL of your deployed Cloudflare Worker.struct Constants {
static let api_base_url = URL(string: "https://your-worker-name.workers.dev/")!
}
Distributed under the GNU General Public License v2.0. See LICENSE for more information.
Important Note: This open-source license does not prevent anyone from renaming and repackaging this app for distribution. However, doing so is in direct violation of App Store Review Guidelines, specifically Guideline 4.1 (Copycats) and Guideline 4.3 (Spam). Any attempt to simply rename and repackage this app for submission to the App Store is explicitly prohibited.
Thanks to @onenewbite for his inspiring video “为什么你应该开始用ChatGPT写日记|做笔记”, which has greatly influenced this project.