亚马逊echo中国使用_如何使用Amazon Echo跟踪航班并查找酒店

亚马逊echo中国使用

亚马逊echo中国使用

amazon-echo-kayak

The Amazon Echo’s feature set keeps growing constantly, and this time around, the voice-activated virtual assistant has added support for Kayak, allowing you to track flights, find hotels, and much more using just your voice.

Amazon Echo的功能集不断增长,这一次,语音激活的虚拟助手增加了对Kayak的支持,使您可以仅使用语音来跟踪航班,查找酒店等。

The Echo can already do some pretty crazy stuff: order pizza from Domino’s, call an Uber to come pick you up, and even control your home theater setup using Kodi. Granted, searching for flights and hotels is likely a better experience in a web browser, but being able to quickly find out when a certain flight will land using your voice is pretty cool. Plus, if you’re in the kitchen and casually talking to your spouse about where you want to go this summer, using Alexa can be a great way to quickly help you out with any vacation plans.

Echo已经可以做一些非常疯狂的事情:从Domino那里订购披萨,打电话给Uber来接您,甚至使用Kodi控制您的家庭影院设置 。 当然,在网络浏览器中搜索航班和酒店可能是更好的体验,但是能够使用您的声音快速找出某个航班何时会降落很酷。 此外,如果您在厨房里并且随便与配偶谈论您今年夏天想去哪里,使用Alexa可以是一种快速帮助您制定任何度假计划的好方法。

You can do a lot more with Kayak through Alexa, with a handful of different phrases. However, before you can get started with all that, you need to install the necessary Alexa Skill first, so let’s get started.

您可以通过Alexa与Kayak一起使用许多不同的短语来做更多的事情。 但是,在开始进行所有操作之前,您需要首先安装必要的Alexa Skill,因此让我们开始吧。

第一步:安装皮划艇Alexa技能 (Step One: Install the Kayak Alexa Skill)

To do this, start by opening up the Alexa app on your phone and tap on the sidebar menu icon in the top-left corner of the screen.

为此,请先在手机上打开Alexa应用程序,然后点击屏幕左上角的侧边栏菜单图标。

IMG_2173_stomped

Tap on “Skills”.

点击“技能”。

IMG_2174_stomped

Tap in the search box at the top where it says “Search Skills”.

在顶部的搜索框中点击“搜索技能”。

IMG_2175_stomped

Type in “Kayak” and the Kayak skill will appear. Tap on “Enable” at the bottom.

输入“皮划艇”,皮划艇技能就会出现。 点击底部的“启用”。

IMG_2176_stomped

Once it’s enabled, you can go back to the main screen or just exit out of the Alexa app.

启用后,您可以返回主屏幕,也可以退出Alexa应用程序。

第二步:使用Alexa搜索航班,酒店和租车 (Step Two: Use Alexa to Search for Flights, Hotels, & Rental Cars)

Once you have the skill installed, you’re off to the races and can ask Alexa to search for any flights, hotels, and even rental cars. However, you have to start every voice command with “Alexa, ask Kayak…”, so keep that in mind when doing your searches.

一旦安装了该技能,您便可以参加比赛,可以要求Alexa搜索任何航班,酒店,甚至是租车。 但是,您必须以“ Alexa,询问皮划艇…”开始每个语音命令,因此在搜索时请记住这一点。

IMG_2373_stomped

Here are a handful of things you can say to your Amazon Echo using Kayak:

您可以使用Kayak对Amazon Echo讲几句话:

“Alexa, ask Kayak to track United flight 310.”

“ Alexa,请皮划艇追踪美联航310航班。”

“Alexa, ask Kayak when the Delta flight from Boston arrives in New York City.”

“ Alexa,问皮划艇何时从波士顿起飞的达美航班抵达纽约市。”

“Alexa, ask Kayak how much it costs to fly from Los Angeles to New York City.”

“ Alexa,问皮划艇从洛杉矶飞往纽约市需要多少费用。”

To make things a bit simpler for you, you can set a home airport that Kayak will use when looking up flights:

为了简化您的工作,您可以设置皮划艇在查找航班时将使用的家庭机场:

“Alexa, ask Kayak to set my home airport to JFK.”

“ Alexa,请皮划艇将我的家乡机场设置为肯尼迪机场。”

“Alexa, ask Kayak to set my home airport to Chicago.” (You’ll then get options of which Chicago airport to choose).

“ Alexa,请皮划艇将我的家乡机场设置为芝加哥。” (然后,您将获得选择哪个芝加哥机场的选项)。

From there, you can make your searches a bit shorter and say things like:

从那里,您可以缩短搜索范围并说出类似以下内容:

“Alexa, ask Kayak to search for flights to Barcelona.”  (You’ll then be asked when you’re leaving and if it’s a round-trip flight or not).

“ Alexa,请皮划艇搜索飞往巴塞罗那的航班。” (然后,系统会询问您何时出发以及是否是往返航班)。

“Alexa, ask Kayak where can I go for $300”.

“ Alexa,问Kayak,我可以花300美元去哪里”。

As for hotels, you can get the information you need from Alexa using a handful of commands (including rental cars):

至于酒店,您可以使用一些命令(包括租车)从Alexa获取所需的信息:

“Alexa, ask Kayak to look up hotels in Chicago.” (You’ll then be asked when you plan on checking in and how long you’ll be staying.)

“ Alexa,请皮划艇在芝加哥寻找酒店。” (然后,系统会询问您何时计划入住以及入住多长时间。)

“Alexa, ask Kayak to search for hotels in Chicago from July 13 to July 17.”

“ Alexa,请皮划艇搜索7月13日至7月17日在芝加哥的酒店。”

“Alexa, ask Kayak to search for rental cars in Denver.”

“ Alexa,请皮划艇在丹佛搜索租车。”

To book a flight, hotel, or rental car, you have to go to Kayak’s website and physically book it, since you can’t do it through the Amazon Echo. You’re using Alexa just to search for flights and hotels, but it can be a quick way to accomplish that.

要预订航班,酒店或租车,您必须先访问Kayak的网站并进行实际预订,因为您无法通过Amazon Echo进行预订。 您仅使用Alexa来搜索航班和酒店,但这可能是实现此目的的快速方法。

Title Image by RobWilson/Bigstock, Kayak, Amazon

标题图片: RobWilson / Bigstock,皮划艇,亚马逊

翻译自: https://www.howtogeek.com/255749/how-to-track-flights-and-find-hotels-using-the-amazon-echo/

亚马逊echo中国使用

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用 PHP 生成 Amazon使用 putListingsItem 上传产品的代码示例: ```php <?php // 设置 AWS 访问密钥和卖家 ID define('AWS_ACCESS_KEY_ID', 'YOUR_ACCESS_KEY_ID'); define('AWS_SECRET_ACCESS_KEY', 'YOUR_SECRET_ACCESS_KEY'); define('MERCHANT_ID', 'YOUR_MERCHANT_ID'); // 设置产品信息 $product = array( 'sku' => 'YOUR_SKU', 'title' => 'YOUR_PRODUCT_TITLE', 'description' => 'YOUR_PRODUCT_DESCRIPTION', 'price' => 'YOUR_PRODUCT_PRICE', 'quantity' => 'YOUR_PRODUCT_QUANTITY', 'condition' => 'YOUR_PRODUCT_CONDITION', 'image' => 'YOUR_PRODUCT_IMAGE_URL', 'category' => 'YOUR_PRODUCT_CATEGORY', ); // 生成 XML 数据 $xml = '<?xml version="1.0" encoding="utf-8"?> <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> <Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>'.MERCHANT_ID.'</MerchantIdentifier> </Header> <MessageType>Product</MessageType> <PurgeAndReplace>false</PurgeAndReplace> <Message> <MessageID>1</MessageID> <OperationType>Update</OperationType> <Product> <SKU>'.$product['sku'].'</SKU> <StandardProductID> <Type>ASIN</Type> <Value>'.$product['asin'].'</Value> </StandardProductID> <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode> <DescriptionData> <Title>'.$product['title'].'</Title> <Brand>'.$product['brand'].'</Brand> <Description>'.$product['description'].'</Description> <BulletPoint>'.$product['bullet_point_1'].'</BulletPoint> <BulletPoint>'.$product['bullet_point_2'].'</BulletPoint> <BulletPoint>'.$product['bullet_point_3'].'</BulletPoint> <BulletPoint>'.$product['bullet_point_4'].'</BulletPoint> <BulletPoint>'.$product['bullet_point_5'].'</BulletPoint> <MSRP currency="USD">'.$product['msrp'].'</MSRP> <Manufacturer>'.$product['manufacturer'].'</Manufacturer> <ItemType>'.$product['item_type'].'</ItemType> </DescriptionData> <ProductData> <Health> <ProductType> <HealthMisc> <Ingredients>'.$product['ingredients'].'</Ingredients> </HealthMisc> </ProductType> </Health> </ProductData> </Product> </Message> </AmazonEnvelope>'; // 设置请求参数 $params = array( 'AWSAccessKeyId' => AWS_ACCESS_KEY_ID, 'Action' => 'SubmitFeed', 'Merchant' => MERCHANT_ID, 'SignatureMethod' => 'HmacSHA256', 'SignatureVersion' => '2', 'Timestamp' => gmdate("Y-m-d\TH:i:s.\\0\\0\\0\\Z", time()), 'Version' => '2009-01-01', 'FeedType' => '_POST_PRODUCT_DATA_', 'ContentMD5Value' => base64_encode(md5($xml, true)), ); // 生成签名字符串 ksort($params); $pairs = array(); foreach ($params as $key => $value) { array_push($pairs, rawurlencode($key).'='.rawurlencode($value)); } $canonical_query_string = join('&', $pairs); $string_to_sign = "POST\nmws.amazonservices.com\n/Feeds/2009-01-01\n".$canonical_query_string; $signature = rawurlencode(base64_encode(hash_hmac('sha256', $string_to_sign, AWS_SECRET_ACCESS_KEY, true))); // 发送请求 $url = "https://mws.amazonservices.com/Feeds/2009-01-01?".$canonical_query_string."&Signature=".$signature; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // 处理响应结果 if ($status == 200) { $xml_response = simplexml_load_string($response); if ($xml_response->MessageID) { echo "Product uploaded successfully: ".$xml_response->MessageID; } else { echo "Product upload failed"; } } else { echo "Error uploading product: ".$response; } ?> ``` 请注意,上述代码仅供参考,需要根据您的实际情况进行修改。同时,您也需要确保您的服务器已经被授权访问 Amazon MWS API,并且您已经在 Amazon 开发者中心注册了您的应用程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值