這是我新設計的meta quest3 遊戲 請多多指教
歡迎來到《FlyMe:木星之舞》!這是一款簡單而有趣的遊戲,您將體驗遙控飛機射擊木星的刺激快感,同時感受到雙手與木星互動的奇妙體驗。讓我們一起來探索這個奇幻的世界吧!
這是我新設計的meta quest3 遊戲 請多多指教
Privacy Policy Statement
Thank you for using our app "FlyMe." We highly value your privacy and are committed to protecting your personal information. Please read the following carefully before using this application:
Data Collection: Our app "FlyMe" does not actively collect any personal information from users, including but not limited to names, email addresses, or contact information. We do not collect, store, or use any of your personal information without your consent.
Data Usage: We do not use any user data for any purpose, nor do we share, sell, or transfer it to third parties. Our app "FlyMe" provides only basic functionality and does not require users to provide personal information to use it.
Third-Party Services: This application may contain links to third-party websites or services. Please note that once you use these links to leave our app, we are not responsible for the privacy practices of those websites. We recommend reading their privacy policies before accessing any third-party websites.
Security: We take reasonable technical and organizational security measures to protect your personal data from unauthorized access, use, or disclosure. However, please note that due to the open nature of the internet, we cannot guarantee the security of the data you transmit to us.
Children's Privacy: We do not knowingly collect personal information from children under the age of 13. If you discover that your child has provided us with personal information without your consent, please contact us immediately, and we will promptly delete such information.
Changes to Privacy Policy: We reserve the right to modify or update this Privacy Policy at any time. Please check this page regularly for the latest information. By continuing to use our app, you agree to be bound by this Privacy Policy.
We are committed to answering any questions and actively improving our privacy protection measures.
Thank you for your trust and support!
Zen Chang
有照後鏡視野的自行車眼鏡
https://youtube.com/clip/Ugkx-HedLrLf9BMf_ao2UPkhtwRK7Xchuzx-?si=GPsNCj1qGP3RoKvb
安裝套件
編輯設定
測試
打開防火牆
設定router的虛擬server
在CentOS 7上安装Squid代理服务器非常简单。你可以使用Yum包管理器来安装Squid。以下是具体的步骤:
要配置Squid代理服务器以仅允许特定IP地址来使用,你可以编辑Squid的配置文件并添加适当的ACL(Access Control List)和http_access规则。以下是如何配置Squid以仅允许特定IP地址使用的示例:
打开Squid的配置文件/etc/squid/squid.conf
:
bashsudo nano /etc/squid/squid.conf
在配置文件中找到并编辑http_access
部分。通常,这部分包括一系列http_access allow
和http_access deny
规则。
在http_access
规则之前,添加一个新的ACL规则以定义你要允许的IP地址。例如,要允许IP地址为192.168.1.100
的主机,可以添加以下行:
cssacl allow_ip src 192.168.1.100
在http_access
规则中,添加一条规则以允许特定ACL。例如,要允许allow_ip
ACL,可以添加以下行:
http_access allow allow_ip
这将允许ACL allow_ip
中列出的IP地址访问代理服务器。
在其他http_access
规则之后,确保添加http_access deny all
,以拒绝所有未明确允许的请求。
csshttp_access deny all
保存配置文件并退出文本编辑器。
重新加载Squid以应用更改:
sudo systemctl reload squid
现在,Squid代理服务器将仅允许192.168.1.100
(或你添加的其他IP地址)的主机来使用。确保按照需要添加和配置更多的ACL和http_access
规则,以满足你的具体访问控制需求。
同步口譯app的開發過程
iPhone
即時語音辨識用內建的就很強
private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "zh-TW"))!
// private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "ja-JP"))!
// private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "en-US"))!
// private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "th-TH"))!
// private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "vi-VN"))!
// private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "ko-KR"))!
private var recognitionRequest: SFSpeechAudioBufferRecognitionRequest?
private var recognitionTask: SFSpeechRecognitionTask?
private let audioEngine = AVAudioEngine()
speechRecognizer.delegate = self
// Asynchronously make the authorization request.
SFSpeechRecognizer.requestAuthorization
可以參考xcode中的範例 SpokenWord
然後,翻譯的部分,我先嚐試用 google mlkit的翻譯,但翻譯品質很差,我打算改用google 雲端付費的api來試試,每月有50萬字的免費額度
google mlkit translate的作法
要先引用套件
pod 'GoogleMLKit/Translate', '4.0.0'
然後使用的方法是
var mytr: Translator?
let options = TranslatorOptions(sourceLanguage: .chinese, targetLanguage: .japanese)
mytr = Translator.translator(options: options)
let conditions = ModelDownloadConditions(
allowsCellularAccess: false,
allowsBackgroundDownloading: true
)
mytr?.downloadModelIfNeeded(with: conditions) { error in
guard error == nil else { return }
print("model ok")
// Model downloaded successfully. Okay to start translating.
}
self.mytr?.translate(self.tv_talk.text) { translatedText, error in
guard error == nil, let translatedText = translatedText else { return }
self.tv_my.text=translatedText
}
同樣也有範例參考 TranslateExample
使用OpenAI chatGPT技術, 根據公司公開重大訊息的內容做出解讀,主要是看這訊息對公司股東的影響,進而會不會影響到股價