语音导航可能在谷歌地图API? [英] Voice navigation possible in google map api?

查看:142
本文介绍了语音导航可能在谷歌地图API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用谷歌地图api v3激活基于语音的方向?
我已经实现了从开始到结束点的方向的地图。但是现在我想听到我当前位置的名称。请帮忙 ?
我已经在iOS UIWebView中实现了,所以我从GPS获取当前位置。
现在我每2秒更新一次,但我会添加基于语音的指示。
怎么可能?如果您使用Google Directions API接收路线,您将以JSON格式接收它们,其中包括路线点,路线长度,旅程的预计持续时间和说明。你可以得到它们,然后使用文本到语音的方式在特定的指令出来时发出声音。


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

解决方案

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆