如何在 iPhone 中从 Web 应用程序启动本机应用程序?

发布于 2024-10-08 03:34:03 字数 209 浏览 0 评论 0原文

我想从 Web 应用程序访问 iOS 的 TTS(文本转语音)和 STT(语音转文本)功能。由于Web应用程序不访问ios设备功能,是否可以从Web应用程序启动Native应用程序? 例如,当用户想要访问TTS(例如Dragon Dictation)时,网页将启动本机应用程序,进行录音并将录制的文本再次发送到Web应用程序。

或者我们可以直接从网络应用程序访问 TTS/STT 功能?

I want to access TTS (Text-To-Speech) and STT (Speech-To-Text) functionality of iOS from web app. Since web app dont access ios device functions, is it possible to launch Native app from Web app?
e.g. When user wants to access TTS (e.g. Dragon Dictation), web page will launch Native app, take recording and send the recorded text to web app again.

Or we can access TTS/STT functionality right from web app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一袭白衣梦中忆 2024-10-15 03:34:03

您可以从 Web 应用程序访问的唯一本机应用程序是设置了自定义 URL 方案的应用程序,以及内置的应用程序,例如短信 (sms://)、电话 (tel://)、iTunes (itms://) 和 YouTube (http://youtube.com/watch?...)。

如果您提到的应用程序没有自己的自定义 URL 方案可供您用来访问它们,则没有其他方法可以做到这一点。

The only native apps you can access from web apps are those with custom URL schemes set up, and the built-in ones e.g. SMS (sms://), phone (tel://), iTunes (itms://) and YouTube (http://youtube.com/watch?...).

If the apps you mention don't have their own custom URL schemes which you can use to get to them, there's no other way you can do this.

世界和平 2024-10-15 03:34:03

我可以回答你问题的一部分 - 从网络应用程序中使用 IOS 本机应用程序的功能;

可以开发应用程序,使其响应自定义 URL 方案 - 例如,邮件应用程序响应 mailto://,youtube 响应 youtube://。使用这些方案之一调用 URL 将启动 IOS 应用程序 - 但完全由开发人员将其编码到他们的应用程序中。

因此,理论上您可以开发一个应用程序,从网络应用程序触发,执行操作,然后返回网络应用程序!不过,我可能不会尝试这样做。

I can answer one part of your question - using the functionality of an IOS native app from a web-app;

Apps can be developed such that they respond to custom URL schemes - like, for example, the mail app responds to mailto:// and youtube responds to youtube://. Calling a URL with one of these schemes will start the IOS app - but it's entirely on the developer to code this into their application.

You could therefore in theory develop an app to get triggered from a web-app, perform an action then return to a web app after! Probably not something I would try and do though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文