简体   繁体   English

谷歌玻璃互动听起来

[英]Google Glass interaction sounds

Is there any way I can get the Google Glass interaction sounds? 有什么方法可以让Google Glass互动听起来吗? For example, the tapping sounds or swiping-through list sounds, etc? 例如,敲击声或滑动列表声音等? I have implemented a horizontal listview, but when you are swiping through it there isn't the default swiping-though sound. 我已经实现了一个水平列表视图,但是当你滑过它时,没有默认的滑动声音。 Is that a bug or its intent to be like that? 这是一个错误还是它的意图?

If you are implementing your own widgets instead of the built-in ones, you will need to play the sounds yourself at the appropriate times. 如果您要实现自己的小部件而不是内置小部件,则需要在适当的时间自己播放声音。

The Sounds class in the GDK defines constants that you can pass to the AudioManager.playSoundEffect method in order to play these sounds. GDK中的Sounds类定义了可以传递给AudioManager.playSoundEffect方法的常量,以便播放这些声音。

I pulled the glass sound apk and unzipped it and then rezipped the sound files. 我拉玻璃声音apk并解压缩然后重新压缩声音文件。 You can access them at https://drive.google.com/file/d/0B_wqfoqX2ZxGRnJzN2dPZlZZZVk/edit?usp=sharing and then select Download from the File menu. 您可以访问https://drive.google.com/file/d/0B_wqfoqX2ZxGRnJzN2dPZlZZZVk/edit?usp=sharing ,然后从“文件”菜单中选择“下载”。

This may help you add sounds in your app, technically. 从技术上讲,这可以帮助您在应用中添加声音。

Disclamier: I'm not sure if it's OK legally to add the sounds to your app. Disclamier:我不确定将声音添加到您的应用程序是否合法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM