Voice navigation possible in google map api?(谷歌地图api中可以进行语音导航吗?)
问题描述
如何使用 google map api v3 激活基于语音的方向?我已经实现了从起点到终点给出方向的地图.但现在我想听听我当前所在位置的名称.请帮忙 ?我在 ios UIWebView 中实现了它,所以我从 GPS 获取当前位置.现在我每 2 秒更新一次,但我想添加基于语音的方向.这怎么可能?请帮忙
How to I activate voice based directions using google map api v3? I already implemented the maps which give directions from start to end points. But now I want to hear the name of my current location . Please help ? I have it implemented in ios UIWebView so I am getting the current location from GPS. Now I update it every 2 sec, but I wana add voice based directions. How is it possible? Please help
推荐答案
如果您使用 Google Directions API 接收路线,您会以 JSON 格式接收路线,其中包括路线点、路线长度、预期的持续时间行程和说明.您可以获取它们,然后在需要时使用文本转语音从特定指令中发出声音.
If you're using Google Directions API for receiving directions, you receive them in JSON format which includes the route points, the route length, the expected duration of the trip and the instructions. You can get them and then use text-to-speech to make sound out of the particular instruction when it's time for it.
这篇关于谷歌地图api中可以进行语音导航吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:谷歌地图api中可以进行语音导航吗?


基础教程推荐
- Bootstrap 模态出现在背景下 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01