谷歌地图api中可以进行语音导航吗?

Voice navigation possible in google map api?(谷歌地图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中可以进行语音导航吗?

基础教程推荐