从Google地图获取步行说明并将该说明存储为字符串

问题描述 投票:-2回答:1

我试图在后台运行google map,但在后台运行语音识别,但是我了解到我无法在后台运行语音识别器。是否有某种方法可以将谷歌地图给出的语音指导转换为字符串。我想要类似“左”,“右”等的关键字。

android google-maps google-maps-markers speech-recognition
1个回答
0
投票

Google Maps Directions API的html_instructions可能包含在Directions API结果的“步骤”中。此html_instructions包含此步骤的格式化指令,以HTML文本字符串形式显示。您会看到它包含您要查找的关键字,例如“ left”和“ right”。然后,您可以将此API集成到您的android应用中。

© www.soinside.com 2019 - 2024. All rights reserved.