定制 aimes/module-voice-search 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aimes/module-voice-search

Composer 安装命令:

composer require aimes/module-voice-search

包简介

Add voice search functionality to Magento 2 global search

README 文档

README

A simple module that adds voice search capabilities to the Magento 2 global search. An icon will be displayed in the search bar if the module is enabled.

Installation

Installation via composer is recommended.

  • composer require aimes/module-voice-search
  • php bin/magento module:enable Aimes_VoiceSearch
  • php bin/magento setup:upgrade

Alternatively, if for whatever reason you are not using composer, put the contents of this repository in <magento_directory>/app/code/Aimes/VoiceSearch

Configuration

  • Enable Voice Search Default: Yes
    • When disabled this module will have no effect
  • Skip Suggestions Default: No
    • With this value set to No the search autocomplete suggestions will display to the user
    • With this value set to Yes the user will be directed to the relevant catalogsearch page and will not fire an AJAX request to get autocomplete results

This module is tested and developed on an unmodified Magento 2.3.5 Open Source instance with Luma theme and sample data. Results may vary using a custom theme.

Developer Notes

The voice search functionality is powered by a jQuery widget $.aimes.voiceSearch which exposes 2 public methods for convenience.

  • startSpeechRecognition - Start listening for user speech
  • stopSpeechRecognition - Stop listening for user speech

Example:

$('#search').voiceSearch('startSpeechRecognition');
$('#search').voiceSearch('stopSpeechRecognition');

The widget has multiple functions for extension. One for each event. It is suggested you use mixins to add additional functionality where appropriate.

Browser Support

This module makes use of the SpeechRecognition API. Browser support can be seen on this page or on caniuse.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固