Chapter5 Alternate Input——The Camera and Microphone
- 格式:pdf
- 大小:371.79 KB
- 文档页数:39
一、选择填空:阅读下面的对话或句子,从 A、B、C 三个选项中选出一个能填入空白处的最佳选项。
题目 1—How isyour business going?—a. Good, it's growing all the time. 正确题目 3—Oh. Dear! I’ve lost my new watch.—c. What a pity!题目 4My assistant will now the machine in action.c. demonstrate题目 4radio transmission The BBC has just successfully demonstrated asystem.c. digital题目 5, he knows a lot about computer.c. Child as he is题目 6二、阅读理解:这是客服人员帮助客服创建进入个人账户的场景,请在空格内填入字母将对话排序。
A.Johnson: Confirmed!B.George:It’s fre e fro m the Google Play st o re and our Re m o t e Se rvice is offered freeof c harge.C.Johnson: Yes, I want to set up a Google account, could you remote control my mobile phone and set up it for me?D.George: S a m s u n g c u s t o m e r service, canI help y ou?E.George: Now press OK to start using the application.F.George: Then you should download and install the Smart Tutor app.G.George: Ok. First, please make sure your phone is runninga mi n imumofAndroid 2.2 and connected to the internet.H.Johnson: Where to download the app? Do I need pay for it?I.Johnson: I e ntered. Thank you.J.Johnson: Thank you! Download finished.D C G A F H B JE I一、选择填空:阅读下面的对话或句子,从 A、B、C 三个选项中选出一个能填入空白处的最佳选项。
【导语】每年的1、5、9⽉为雅思换题⽉。
每⼀次更换的题⽬⼤概是淘汰30%到40%的旧题,并且补充相应数量的新题,⼤家在备考雅思⼝语的时候,⼀定要根据雅思⼝语话题的变化来变更⾃⼰的机经版本。
下⾯就是为⼤家收集整理了2017年9-12⽉雅思⼝语Part 2预测,以供⼤家参考。
Describe an invention that changed the world. You should say: What the invention was What it can do How popular it is Why it is an important invention. 语料⼤分析: 各位考⽣⼤家好,今天为⼤家准备的⼝语素材就是我们的5⽉新题之⼀:⼀项改变世界的发明。
那么我们有什么样的重要发明呢?下⾯是⽼师给⼤家准备的⼀些选项,希望能够帮助到⼤家哦。
Invention Of The Automobile 汽车的发明 Some facts: The invention of the automobile can be traced back(追溯到)as far as 1769, when one Nicolas-Joseph Cugnot, devised the very first concept - a complex, three wheeled(三轮的)steam engine. 汽车的发明可以追溯到1769年,当时,⼀个叫Nicolas-Joseph Cugnot的⼈设计了第⼀个概念型车——复杂的三轮蒸汽引擎。
At first, the idea never really took off(⼤受欢迎), as it could not compete with horse powered(以马为动⼒的) transportation which were easier to handle, faster, less expensive and more commercially viable(可⾏的). 起初这个想法并没有⽕起来,因为以马为动⼒的运输⼯具⽐它更容易操作、更快、更便宜,也更具商业化。
If youre looking to translate something into English using your smartphone,there are several steps you can follow to ensure that you get an accurate and wellwritten translation.Heres a comprehensive guide on how to do it:1.Choose a Translation App:There are numerous translation apps available that can help you translate text into English.Some popular ones include Google Translate,Microsoft Translator,and DeepL.These apps are available for both Android and iOS devices.2.Install the App:Go to the Google Play Store or Apple App Store,search for the translation app youve chosen,and install it on your smartphone.3.Open the App:Once installed,open the app and grant it the necessary permissions to access your devices camera,microphone,or internet connection,depending on the apps requirements.4.Select the Source Language:Most translation apps will prompt you to select the language you want to translate from.Choose the appropriate language.5.Input the Text:There are different ways to input text for translation:Type It In:If youre translating a short text,you can simply type it into the app. Speak It:Use the apps voice recognition feature to speak the text you want to translate. Scan It:Use the camera feature to scan a document or text and have it translated.6.Translate:After inputting the text,the app will automatically translate it into English. You can then review the translation.7.Edit the Translation:While machine translations are often quite accurate,they may not always capture the nuances of the original text.You can edit the translation directly in the app to improve its accuracy and readability.8.Save or Share the Translation:Once youre satisfied with the translation,you can save it to your device or share it via email,social media,or other platforms.e Additional Features:Some translation apps offer additional features such as offline translation,language learning tools,or the ability to save your translations for later use.10.Practice and Improve:The more you use the translation app,the better youll become at understanding its strengths and limitations.Practice by translating various types of texts to improve your skills.Remember,while translation apps are incredibly helpful,they may not always provide a perfect translation,especially for complex or idiomatic expressions.Its always a good idea to have a native speaker review the translation for accuracy and natural flow.。
....2014 ~2015 学年度第一学期期末考试高三英语试题(考试时间:120 分钟总分120分)命题人:高莉扶国英朱洪斌审题人:注意事项:1、本试卷共分两部分,第Ⅰ卷为选择题,第Ⅱ 卷为非选择题。
2、所有试题的答案均填写在答题纸上,答案写在试卷上的无效。
第 I 卷(选择题三部分共 85 分)第一部分:听力(共两节,满分 20 分)做题时,先将答案标在试卷上。
录音内容结束后,你将有两分钟的时间将试卷上的答案转涂到答题纸上。
第一节(共 5 小题;每题 1 分,满分 5 分)听下边 5 段对话。
每段对话后有一个小题,从题中所给的A 、B、 C 三个选项中选出最正确选项,并标在试卷的相应地点。
听完每段对话后,你都有 10 秒钟的时间往返答有关小题和阅读下一小题。
每段对话仅读一遍。
1. Where does this conversation probably take place?A. At a hotel.B. At home.C. At a store.2. How much did the man pay for the camera?A. $ 175.B. $ 150.C. $ 200.3. How does the woman feel after the dance class?A. Tired.B. Disappointed.C. Happy.4. What are the speakers mainly talking about?A. A film-maker.B. A magician.C. A movie.5.Why can ’tthe woman sleep?A.She hears very bad noises.B.She often receives strange calls.C.She has to work late in a restaurant.第二节(共 15 小题;每题 1 分,满分 15 分)听下边 5 段对话或独白。
英语 vii 译林牛津版 unit1 单元测试I. Translate the following phrases. (20 ’)1. have access to 200 channels 11. 比 ... 优胜,超出2. combine...with... 12. 上市,面市3. along with 13. 给 ... 上发条4. take over the market 14. 浮现,迅猛发展5. contribute to the development of science 15. 实时追上6. bring great convenience to people ’s lives 16. 能够,干得出7. all sorts of different functions 17. 经过 ... 方式8. conduct a study/survey 18. 向... 行进9. do sth. by accident/mistake 19. 既然那样,在此状况下10. can be used without caution 20. 当前,临时II. Multiple choice. (20 ’)1. I felt quite ________ what I was supposed to do then.A. unsure ofB. uncertain aboutC. certainD. sure2. He said he would come; He didn ’t ________.A. even ifB. even thoughC. althoughD. though3. Ten ________ the students are absent.A. per cent ofB. percentage ofC. per centD. percentage4. They ________ invited if there had been room.A. would have been allB. would have all beenC. all would have beenD. would all have been5. They drove along with all the car windows ________.A. wound upB. winding onC. winded upD. wind up6. The mother died when the child was born, so it had to be brought up ________.A. with a handB. by handC. by the handD. at hand7. Apply some medicine ________ his wound.A. onB. forC. toD. in8. The landlady led the way ________ the tenant around her house.B. showingC. into showD. showing inA. inshowing9. Scientific experiments ________ students without the teach er ’s instructions can be dangerous.A. carry outB. carrying out byC. carrying byD. carriedout by10. ________ is known to us all, only the theory ________ practice can be practical.A. Which, base onB.Which, based onC.As, based onD.As, basing on11.--- How come a simple meal like this costs so much?---We have ________ in your bill the cost of the teapot you broke just now.A. addedB. includedC. obtainedD. charged12. Good workers are always ________ in the factory.A. in demandB. on needC. by requestD. forrequirement13. The situation is hard to ________, because he isn’t a man easy to ________.A. be dealt, communicateB. be dealt with, be communicatedC. deal with, communicate withD. deal , be communicated with14. ________ their friendship grew into love.A. By degreeB. By degreesC. To degreeD. To degrees15. She passed the entrance exam easily, _________ of her family.A. with the delightB. with delightC. to the delightD. to thedelights16. Can you telephone me _________ to arrange a meeting?A. at your convenienceB. for your convenienceC. on your convenienceD. with your convenience17. My grandma still treats me like a child. She can’t imagine ________ grown up.A. myB. mineC. myselfD. me18. We’ve been looking at houses but haven’t found ________ we like yet.A. oneB. onesC. itD. them19. As well as _________, the girl plays the guitar wonderfully.A. to singB. singC. singingD. sings20. He ’s not a(n) _________ boxer; heA. mereB. onlyC. merely ’s the world champion.D. aloneIII. Fill in the blanks. (20’) A1. This model is the newest and most up to date. It only w________ 60 grams.2. That kind of electronic dictionaries is elegantly shaped, especiallyfor people with a reading disability.s__________3.The latest models of mobile phones are on sale. Would you like to a__________me to have a look?4. A_________, I appreciate for your invitation. But I ’m too busy to go for it.5.Our electrical bikes have good quality and a one-year g__________.6.Who can still have _________ (相信) in you despite your shortcomings?7. The shop was too crowded so that the __________ ( 录音) made there was not very clear.8. The girl is so timid and she ’s __________ ( 不肯) to speak in public.9. I ’m a new comer and not __________ ( 熟习旳) with the local customs.10. He was charged for not having a _________ ( 有效旳) driving licence.BHost: Good morning. Mr. Brain, and welcome to The InventionShow. Would you mind 11)i_________ your invention to us? 11. _____________Mr. Brain:Host: Mr. Brain:Sure, my invention is amazing. It’s an electric fanwhich you attach to chopsticks to cool down hot food.Wow! That sounds 12) i________. What else can it do?The fan has also been fitted with a chip which hashundreds of 13) s ,so you can listen to music whileyou are eating.12. _____________13. _____________Host: Mr. Brain:That ’s really fascinating.Yes. It is pleasant to think that so many people are interested in my invention.Host: Do you think there is room for 14) i ?Mr. Brain: Certainly. I do think the fan is too small, and the 14. _____________ engine can not 15) r for a very long time. 15. _____________ Host: Oh, I can imagine. Have you been 16) s in 16. _____________ finding a solution to this 17)p ? 17. _____________ Mr. Brain: Not yet, 18) b having worked on this invention 18. _____________ for over a year now, I am sure that I can find a solution.Host: That ’s great. We look 19) f to seeing your 19. _____________ new and improved 20) f soon. 20. _____________ Mr. Brain: Thank you.IV. Complete the sentences. (24 ’)1. Nobody has been responsible for the accident yet. The police are ________ ________ ( 检查 ) the case.2. Can you tell me what UK _________ ________ ( 代表,象征 )?3. The engineer __________ ( 要求 ) a meeting _________held to discuss this question.4. It ’s ________ _______ ( 由 ... 决定 ) you to decide whether it ’s in your budgetor not.5. ________ ________ ________ _______ ( 至于 ) learning English, he has no superiority.6. You may purchase a _________ ________ ( 各种各种旳 ) household appliances in our department store.7. What he said does ________ _________ ( 未必 ) mean that he likes his present job.8. On the whole, women are not ________ _______ ( 等于,相当于 ) men in physical strength.9.His skin can’t ________ _________ _______ ( 裸露于,经受 ) the sun for such a long time.10. Price of a product _______ usually _________ ________ ( 与 ... 相关 ) its qualityand brand.V. Cloze test. (20 ’)My mother used to ask me what is the most important part of the body . Throughthe years I would 36 the correct answer . WhenI was younger , I thought 37 was very important to us as humans , so I said , “My ears , Mummy . ” She said , “No. Many people are 38 . But you keep thinking about it and I will ask you again soon. ”Several years passed before she asked me again . Since making my first 39 ,I had often thought over the question . So this time I told her , “Mummy , it must be our eyes . ”She looked at me and said, “You are 40 fast , but the answer isnot correct because there are many people who are blind. ”41 the years , mother asked me a couple more42 and always her response to myanswers was , “No, but you are getting43 every year , my child. ” Then last year , my Grandpa 44 . Everybody was heart broken . Everybody was crying . My mum lookedat me when it was our 45 to say our final good- bye to Grandpa . She asked me , “Do you know the most important body part yet , my dear? ”I was 46 when she was asking me this now . I always thought this was a 47between her and me .She saw the 48 on my face and told me , “This question is very important . It shows that you have really 49 your life. ” I saw her eyes well upwith tears . She said , “My dear , the most important body part is your 50 . ”I as ked , “Is it because they hold up your head? ” She replied , “No , it is 51 on them a crying friend or loved one can rest their head . I only hope that you have enough 52 and friends that you will have a shoulder to cry 53 when you needit. ” Then and there I understood the most important body part is not a 54 one .It is sympathetic (怜悯旳) to the pain of 55 .36. A. notice B. believe in C. doubt D. guess at37. A. love B. health C. sound D. sight38. A. blind B. deaf C. invisible D. thoughtful39. A. discovery B. decision C. attempt D. suggestion40. A. learning B. thinking C. growing D. changing41. A. Before B. Till C. Beyond D. Over42. A. ways B. things C. questions D. times43. A. stronger B. taller C. smarter D. nicer44. A. left B. got ill C. died D. got wounded45. A. duty B. turn C. pity D. chance46. A. shocked B. satisfied C. interested D. excited47. A. game B. test C. match D. secret48. A. worry B. puzzlement C . regret D. pain49. A. enjoyed B. found C. disliked D. lived50. A. shoulders B. feet C. hands D. hair51. A. how B. because C. why D. whether52. A. respect B. favor C. love D. fun53. A. by B. on C. above D. for54. A. valuable B. useful C. selfish D. precious55. A. others B. the deaf C. Grandpa D. the blindVI. Reading Comprehension. (16 ’)A“I have a regular film camera but I just don’t use it much , ” said Ms Lowery , 23, a computer programmer . “When I got married last year , I had all these pictures that didn ’t come out right . With digital cameras , you aren ’t spending money on film for waste d pictures , ” she said .There are plenty of models from which to choose : from simple $ 200point-and-shoot snappers to $ 1,000 wonders with all the qualities that anyadvanced amateur (业余喜好者) could want . The wide selection is a sure sign that in many buyers ’ minds , digital cameras have risen from mere gadgets to must -have items .Digital cameras offer more than just the instant previewing of pictures on small color screens . They can store dozens , sometimes hundreds , of pictures that canbe printed easily at home or sent by e-mail . Although there are extra costs-thecost of memory cards for storage and the special paper for printing — many buyers have been willing to make the switch .Although about 90 percent of American households still use film cameras ,digital cameras are capturing a growing share of the market . And the number ofdigital-camera households , now at about 10 percent , is certain to grow , asproducers introduce more and more cameras whose quality is as good as film cameras . Soon , even professionals will use them .Salesmen expect digital cameras to be popular gifts this holiday season . “They are very hot this year , ” said Yossi Fogel at B& H Photo in New York . “T he prices have come down and the quality has gone up .Who wants to travel with 30 rolls offilm ? With a large memory card to store pictures , you can shoot and shoot and never have to worry about changing a roll . Howmany times have you missed a picture because you failed to reload the film ? ”56. Which of the following is NOT an advantage of the digital camera over the filmcamera ?A. The user has to spend additional money for it .B. It comes in many models for the customer .C. It saves money from unwanted pictures .D. Its pictures can be sent by e-mail .57. According to this passage , the American household using digital cameras willincreaseif .A. their producers spend more money B. their operation becomes simplerC. their salesmen are more friendly D. their quality keeps improving58. Which of the following is NOT TRUE about film cameras ?A. Their pictures can be printed at a photo shop .B. Their pictures can be enlarged as desired .C. Their pictures can be seen before they are printed .D. Their pictures can be stored for a long time .59 . According to this article, digital cameras nowadays are used mainly by.A. professionals B. amateurs C. housewives D.studentsBWhen the musical sound rings out,you immediately reach for your pocket readyto have a chat .But although you probably use it all the time , have you ever stopped to think about the manners related to talking on the phone? If you haven ’t ,here are some tips to guide you .●Always give the person you are calling plenty of time to get to the phone before you hang up . If the person who answers is not the one you want ,give your name and ask if you may speak to the person you want .●T hink about the time you call people . Try not to call too early in themorning(before about 9 : 00)or too late at night(after about 9 :30) . Also try notto call at mealtimes .●If you go by plane to visit your relatives at Christmas ,remember to follow airline instructions . Cell phones must be turned off as soon as the plane doors are closed and remain so until the doors open again on arrival .●When face to face with someone , do not talk on the phone . It is rude to be onthe phone when a waiter is trying to take your order in a restaurant , or when you are returning the shoes you have just been trying on in a shop .Finish any face-to-face business before taking a call .Continuing to use the phone while nodding to the person in front of you is quite impolite .●When in a restaurant with your friends ,keep phone conversations short .Makea call only if it is important ,Practise speaking in a low voice . If no one looks your way ,you’ve got it.●If you go to a theatre , a concert or a cinema , consider the other people around you.Check that your phone is “off ”before you enter . If you are expecting a very important call ,put your phone on “vibrate ”( 振动)and run for the exit as soon as you feel it .If you forget both “off ”and “vibrate ”and your phone rings ,don’t answer it , turn it off straight away .68. Which is true according to the passage above?A. You may call people anytime as you like .B. You may talk loudly on the phone at dinner in the restaurant .C. You may keep on talking on the phone while greeting somebody .D. You may call people as soon as you get on the plane ,but not after the doorsare closed69We may infer from these tips that__________A some people don’t pay much attention to manners while making cell phone callsB you may ask to leave a message unless the person you are calling is inC calling people too early or too late in the morning is not politeD almost everyone has got a cell phone70What does the underlined sentence “ you've got it ”mean in the passage?A You have succeeded in making a call without disturbing othersB You have made the phone call brief and interestingC You’ve got the message you are waiting for.D You have made a phone call secretly71From the tips given above we canthe writer is sure to share the opiniondecidethat______A1ike the saying “clothes make a man ”nowadays cell phones make a manB as the old saying goes money talks nowadays cell phones talkC the way we use the cell phones tells what we arelike D we are what cell phones we use参照答案I. 1.能够接受200 个频道 2. 把 ... 连结到 3. 和 4. 占据市场 5. 对科学发展作8.展开研究 / 检查贡献 6. 给人民旳生活带来极大旳方便7.各种不一样旳功能9.误做了某事10.可被放心使用11. be superior to12. come onto themarket13.wind up 14.spring up 15.in time for16.be capable to 17.by means of 18.head for 19.in that case 20.for the time being II. 1-5. BDADA 6-10. BCADC 11-15. BACBC16-20. ADACAIII. 1. weighs 2. suitable 3. accompany 4. Anyway/Anyhow 5.guarantee6. faith7. recording8. unwilling9. familiar10.valid11. introducing 12. interesting13. songs 14. improvement 15.run16. successful17.problem18.but19.forward20.fan IV. 1. looking into 2. stands for 3. demands/demanded, be 4. up to 5. Inthe case of6. variety of7. not necessarily8. equal to9. be exposed to10. is,associated withV.36-55. DCBCA ; DDCCB ; AABDA ; BCBCAVI. 56-59. ADCB 60-63. DAAC英语vii译林牛津版unit1单元测试一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一11 / 11。
The “Clips” Camera Just Might Be the Weirdest Product Ever神奇的谷歌智能相机Google’s Clips camera is a tiny sliver of a camera. You can set it down anywhere or clip it to anything. Once you turn it on, you do not have to press a button or use a self-timer (自拍定时器) to take pictures. The camera decides when to snap, based on Google’s AI algorithms (算法). The Clips solves some real problems for those who are always behind the camera. Babies and pets often stop whatever interesting things they are doing the moment you pull out your phone. They either get distracted by it or feel uncomfortable. The Clips, however, can avoid that problem because you are not holding the camera between your face and theirs.That said, I suspect the Clips will probably be a failure. The camera is not very impressive next to those in some smartphones, and $250 is a high price for a “one-trick pony.” The major problem lies in its central idea — AI as photographer.AI has to be programmed by engineers. In other words, it does not ultimately decide what makes a good picture; its programmers, informed by photography experts, do. Some of the AI’s decision-making in the Clips is obvious. It looks for scenes of activity. It favors familiar subjects — people whose faces it sees most often. It avoids capturing an image when somethingis blocking the lens, like your fingers or your pet’s paws. It prefers good lighting, and takes its best shots 0.9 to 1.5 meters away.What makes things complicated is that the Clips is designed to wait for happy facial expressions. It tends not to capture anybody who is sad, angry, sleepy, bored or crying. That AI rule, unfortunately, rules out a lot of great picture taking. Let’s face it —a young child’s life is full of precious tragicomic (悲喜交加的) moments that might be worth recording, even if they produce brief bursts of tears. You know: His ice cream falls off the cone onto the floor; a puppy licks her face a little too energetically; a well-meaning (出于好心的) clown frightens him.With Google’s Clips camera, you wil l find yourself painting a picture of a flawless life. Then you may begin to wonder: Why do we take pictures in the first place? To create a faithful record of our lives? Is there anything wrong with celebrating only the bright spots?Answering those questions depends, in part, on who your audience is. There is no right answer. If Google’s Clips camera achieves nothing more than throwing those questions into sharper focus, its invention will not have been in vain (徒劳的).(节选自Scientific American)1. Google’s Clips camera differs from those in smartphones in ______.A. its overall sizeB. the scenes it createsC. the way it takes photosD. the subject it focuses on2. According to the article, Google’s Clips camera is most likely targeted at ______.①pet owners②professional photographers③IT engineers④parents of young childrenA. ①②B. ②③C. ③④D. ①④3. The author said the Clips would “probably be a failure” because ______.A. the camera is too expensiveB. the camera only takes pictures in perfect conditionsC. what makes a good picture is decided by AID. the camera prevents people from thinking critically词汇:1. distract v. (~ sb./sth. from) to take one’s attention away from sth. by making them look at or listen to sth. else 分散(注意力),使分心→distracted adj. 精神无法集中的2. suspect v. to think that sth. is probably true, especially sth. bad 猜想,怀疑3. program(me) v. to set a machine to operate in a particular way 预调,设置→programmer n. 程序员,编程人员4. precious adj. of great value because of being rare, expensive or important 宝贵的5. frighten v. to make sb. feel afraid 使害怕,使惊吓→frightened adj. 感到害怕的语法:Babies and pets often stop whatever interesting things they are doing the moment you pull out your phone.名词短语the moment引导时间状语从句,意为“一……就”,表示两个动作紧接着发生。
B2U1 Lights, camera, action!重点单词1.type n.种类 v,打字 typical adj典型的She is not my type.她不是我喜欢的那种人type in 输入 =input2.fantasy n.幻想;想象——fantastic adj. 极好的,了不起的;富于想象的,怪诞的① a fantastic achievement 一个了不起的成就② a fantastic scheme/project 不切实际的计划/方案3.horror n.恐怖电影;震惊——horrible adj.可怕的;极其讨厌的in horror 惊恐地 to one's horror 另某人惊恐的是4.romance n.爱情故事;爱情——romantic adj. 浪漫的,空想的5.behind the scenes 在幕后;秘密地6.actually adv.真实地;事实上=in fact=in effect7.brief adj.简洁的;简短的 briefly adv 简短地a brief visit/ meeting/ conversationa brief account/ description/ introductionIn brief/Briefly speaking, the meeting was a disaster. 简言之,一言以蔽之=in short/in a word8.familiar【a】熟悉的,常见的↔ unfamiliar【a】不熟悉的sth. be familiar to sb. 是某人熟悉的The smell is very familiar to everyone who lives near a bakery. 住在面包店附近的人都很熟悉这种气味。
sb. be familiar with sth. 某人对某事熟悉Are you familiar with the puter software they use? 你熟悉他们使用的计算机软件吗?look/sound/taste familiar 看/听/尝起来熟悉familiarity【n】熟悉【U】9.factor n.因素 element n.要素10.sheet n.床单;薄片;一张a clean/blank sheet of paper 一张白纸a sheet of glass/steel 一块玻璃;一张钢板11.attach【vt】认为有重要性,重视;把...固定,附上✓attach … to…把。
Dell Precision 5540 Technical GuidebookNotes, cautions, and warningsNOTE: A NOTE indicates important information that helps you make better use of your product.CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid the problem.WARNING: A WARNING indicates a potential for property damage, personal injury, or death.© 2019 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners.2018 - 06Rev. A001 Introduction (4)Welcome—Getting Started (4)2 Product View and T echnical Specifications (5)Product overview (5)3 Chassis (6)System Overview (6)Front Open View (7)Hot key combinations (8)Keyboard shortcuts (8)4 Marketing System Configurations (10)Processor specifications (10)Storage specifications (10)Port and connector specifications (11)5 Engineering specifications (12)Physical specifications (12)BIOS defaults (12)Communication specifications (13)Video specifications (14)Audio specifications (14)Display specifications (14)Keyboard specifications (16)Camera (16)Touchpad specifications (16)Power supply specifications (17)Power adapter (17)Battery (17)6 Getting help (19)Contacting Dell (19)Contents3Introduction Welcome—Getting StartedThe Dell Precision 5540 T echnical Guide Book contains information about the hardware configuration, chassis views and system BIOS and how to contact Dell for any technical support.4IntroductionProduct View and T echnical Specifications This chapter consists of the product view features along with technical specifications. The product view features calls out the different ports, connectors and components available in Precision 5540 mobile workstation.Product overviewDell Precision 5540 offers the following:•9th Generation Intel Core i5/i7/i9 and Xeon CPUs•CM246 chipset•T wo SODIMM dual-channel DDR4 memory•Wi-Fi 802.11b/g/n + Wi-Fi 4 (WiFi 802.11n) + Wi-Fi 5 (WiFi 802.11ac) + WiFi 6 (WiFi 802.11ax)+ Bluetooth 5.0•ALC3266-CG with Waves MaxxAudio Pro•One 2.5-inch hard drive and/or M.2 2280 PCIe NVMe solid-state driveProduct View and T echnical Specifications5Chassis This chapter illustrates the multiple chassis views along with the ports and connectors and also explains the FN hot key combinations. Topics:•System Overview•Hot key combinationsSystem OverviewFigure 1. Front View1Power button with light indicator / Power button with2Keyboardfingerprint reader without light indicator (optional)3Palmrest4T ouchpad6ChassisFront Open View1Camera-status light2Camera3Left speaker4Right speakerFigure 2. Left View1Power connector port2USB 3.1 Gen 1 port with PowerShare3HDMI port4Thunderbolt 3 T ype-C port5Headset portChassis7Figure 3. Right View1Memory card reader2USB 3.1 Gen 1 port with PowerShare3Battery-charge status lights4Battery-charge status button5Noble wedge security slotHot key combinationsKeyboard shortcutsSome keys on your keyboard have two symbols on them. These keys can be used to type alternate characters or to perform secondary functions. The symbol shown on the lower part of the key refers to the character that is typed out when the key is pressed. If you press shift and the key, the symbol shown on the upper part of the key is typed out. For example, if you press 2, 2 is typed out; if you press Shift + 2, @ is typed out.The keys F1-F12 at the top row of the keyboard are function keys for multi-media control, as indicated by the icon at the bottom of the key. Press the function key to invoke the task represented by the icon. For example, pressing F1 mutes the audio (refer to the table below). However, if the function keys F1-F12 are needed for specific software applications, multi-media functionality can be disabled by pressing Fn + Esc. Subsequently, multi-media control can be invoked by pressing Fn and the respective function key. For example, mute audio by pressing Fn + F1.NOTE: Keyboard characters may differ depending on the keyboard language configuration. Keys used for shortcuts remain theT able 1. Hot key combination8ChassisT able 2. List of keyboard shortcutsChassis9Marketing System ConfigurationsThis chapter lists the operating system configurations supported in Precision computer. It also lists the processor, memory, storage options available for this system. It will help the team in identifying whether a specific configuration is supported by the system.ProcessorspecificationsNOTE: Processor numbers are not a measure of performance. Processor availability is subject to change and may vary by region/country.T able 3. Processor specificationsStorage specificationsNOTE: The 2.5 inches drives are not available with the 97 WHr battery.T able 4. Storagespecifications 410Marketing System ConfigurationsPort and connector specificationsT able 5. Ports and connectorsMarketing System Configurations11Engineering specifications This chapter lists out the specification of each and every component in a comprehensive format. Specific features/models/configurations/ options discussed in the document may or may not be available.Physical specificationsT able 6. Dimensions and weightBIOS defaultsT able 7. BIOS defaultsSystem Configuration SATA Operation RAID OnDrives SATA-0, SATA-1, and M.2 PCIe SSD-0SMART Reporting DisabledUSB Configuration Default Enabled: Enable Boot Support, EnabledThunderbolt Ports; Always Allow Dell Docks; EnabledExternal USB Port , Security level- UserAuthorizationUSB PowerShare DisabledAudio Enabled, microphone enabled, and Internal speakerenabledKeyboard Illumination BrightMiscellaneous Devices Camera enabled, SD card enabledVideo LCD Brightness AC 100%, DC 50%Performance Multiple Core Support:AllIntel SpeedStep™:Enabled5 12Engineering specificationsC States Control:EnabledIntel TurboBoost EnabledVirtualization Support Virtualization EnabledVT for Direct I/O:EnabledTrusted Execution DisabledSecurity PasswordPassword Configuration Min=4, Max=32Password Bypass DisabledPassword Change PermittedNon-Admin Setup Changes DisabledUEFI Capsule Firmware Updates EnabledTPM 2.0 Security EnabledComputrace DeactivateCPU XD Support EnabledOROM Keyboard Access EnabledAdmin Setup Lockout DisabledMaster Password Lockout DisabledSupportAssist System Resolution Auto OS Recovery Threshold2SupportAssist OS Recovery Enabled Communication specificationsT able 8. Communication specificationsEngineering specifications13Video specifications T able 9. VideoAudio specifications T able 10. Audio specificationsDisplay specifications T able 11. Display specifications14Engineering specificationsEngineering specifications15Keyboard specifications T able 12. Keyboard specificationsCameraT able 13. Camera specificationsTouchpad specifications T able 14. Touchpad specifications16Engineering specificationsPower supply specificationsT able 15. Power supplyPower adapterT able 16. Power adapter specificationsBatteryNOTE: 97 WHr battery is not available with the 2.5 inch drives.T able 17. Battery specificationsEngineering specifications1718Engineering specificationsGetting helpContacting DellNOTE: If you do not have an active Internet connection, you can find contact information on your purchase invoice, packing slip, bill, or Dell product catalog.Dell provides several online and telephone-based support and service options. Availability varies by country and product, and some services may not be available in your area. T o contact Dell for sales, technical support, or customer service issues:1 Go to /support.2 Select your support category.3 Verify your country or region in the Choose a Country/Region drop-down list at the bottom of the page.4Select the appropriate service or support link based on your need.6Getting help 19。
If you’ve ever taken any kind of introductory computer science course, it’s a sure betthat you ran across a diagram on your first day or in the first chapter of your text thatwas some variation of the one shown in Figure 5-1.F igure 5-1. Input, process, outputIf you were in the advanced course, there might have been another box hanging offsomewhere labeled Storage.And that’s pretty much just what a computer does. It reads in some kind of data asinput, does something with it, possibly stores it, possibly later retrieves it, and thenspits it out in some form.The vast majority of what has been written about computers and software focuses onthe middle box—processing some data to create something worthy of output.ALTERNATE INPUT: THE CAMERAAND MICROPHONEChapter 5CHAPTER 5Input is generally assumed to be via the keyboard or mouse, and output almost always consists of writing something to the screen or making a sound come out of the speaker(s). Of course, there are lots of alternatives and infinite variations, but most daily operations for average programmers and end users deal with the mouse, keyboard, screen, and audio device.To be fair, there’s a whole lot you can do with a keyboard and mouse in terms of input. It’s certainlya far cry from the earliest “personal computers,” for which input meant flipping a series of switches,and output meant interpreting the on/off state of a row of LEDs. But I feel there’s a bit of a discon-nect in the fact that most of our input is mechanical or tactile, and most of our output is audible and visual.Now, if you are into science fiction, you know that eventually we’ll all be controlling our computers visually à la Minority Report and have conversations with them as in 2001: A Space Odyssey (hopefully things work out better than the end of that movie). And although progress has been made in both areas, current touch screens tend to just mimic existing keyboards and existing physical input devices, and voice recognition technology, although improving, hasn’t shown itself to be ready for prime time.So, although I don’t recommend that you write your next novel (or even your next program) via your microphone, exploring alternate input methods can be great fun and is what we’ll explore in this chap-ter, specifically via the microphone and camera.Cameras and MicrophonesOne of the barriers to using alternate input methods is that any input requires an input device.Alternate input requires an alternate device. Although you’d be h ard- p ressed to find a computer these days without a keyboard and mouse/trackball/trackpad, some forms of input require specialized, hard to get, and often expensive hardware. You also need to install special drivers, software, or even local servers to interact with that hardware and make its input available for your program.Fortunately, almost every consumer laptop produced in the last couple of years seems to havea b uilt- i n camera and microphone, and even if your computer doesn’t have them, you can pick themboth up at almost any corner store for less than what you paid for this book. If you do need to buy them, microphones are usually p lug-and- p lay, and webcams always come with an easy installation program that takes about three minutes to set up. And as a Flash developer, you have direct access to the camera and microphone to use as input devices.People often think of the camera and microphone only in terms of making a chat or video confer-encing type of application (in other words, taking the voice or camera stream, sending it to another computer, and playing it back pretty much as it came in). But a few people have experimented with the idea of using sound and video as a more direct input device—capturing the audio or video input, analyzing it, and using it to affect something that’s going on in a program.This chapter gives you some ideas of how to use a camera and/or microphone as an input device. Of course, there’s no way I could even come close to describing every possible way, but I’ll discuss the basic techniques of how to capture video and sound, and show some ways to manipulate them. From there, it’s all a matter of your own creativity for what you do with them. We’ll start out with the rela-tively simple case of handling the microphone.ALTERNATE INPUT: THE CAMERA AND MICROPHONESound as InputMicrophone input in Flash is done via (no surprise) the Ie_nkldkja class. This class is quite easy towork with, but unfortunately that’s because it is also rather limited in what you can do with it. Manypeople who are familiar with ActionScript’s Okqj` class learn about the Ie_nkldkja class and imme-diately try to compute r eal- t ime sound spectrums. If this is what you are expecting, let me dash yourhopes right here and now. Don’t think you can record the sound coming in through the microphone,either. Neither is supported by the Ie_nkldkja class.The Ie_nkldkja class’s main functionality is returning the current activity level of a particular micro-phone. This activity level is a number from 0 to 100, indicating how much sound is being receivedby the microphone—0 is no sound, and 100 is the maximum amount of sound it can register. Witha little creativity, you can do some cool things with this value. First let’s look at how to get access tothe microphone via ActionScript.The Ie_nkldkja class has a static method called capIe_nkldkja, which returns an instance of the Ie_nkldkja class that represents a single physical microphone attached to the computer. If you callthe method with no parameters, it will return the first microphone it finds on the system. If you passa value of –1 to capIe_nkldkja, it will return the default microphone on the system. In most cases,they are the same thing, and that is the microphone you are looking for. You can get fancy and retrievea list of all microphones on the system and use an index of that list to select a specific microphone touse in Flash, but this is usually overkill.You can try the following Ie_nkldkjaPaop class to play around with the capIe_nkldkja method.Like the rest of the code in this book, it’s available for download from the book’s download page atsss*bneaj`okba`*_ki (the file is Ie_nkldkjaPaop*]o):l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*ia`e]*Ie_nkldkja7lq^he_ _h]oo Ie_nkldkjaPaop atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lq^he_ bqj_pekj Ie_nkldkjaPaop$%w[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7pn]_a$[ie_*j]ia%7yyyTry passing in different values to capIe_nkldkja and see what it traces out. Eventually, you’ll try toindex a microphone that doesn’t exist. This will return null and you’ll get an error saying you can’taccess a property or method of a null object, which is exactly what should happen.If you want to prompt your users to choose a microphone, you do so by calling up the Microphonesettings panel via the Oa_qnepu*odksOappejco method, like so:CHAPTER 5l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*ia`e]*Ie_nkldkja7eilknp bh]od*ouopai*Oa_qnepu7eilknp bh]od*ouopai*Oa_qnepuL]jah7lq^he_ _h]oo Ie_nkldkjaPaop atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lq^he_ bqj_pekj Ie_nkldkjaPaop$%w[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7Oa_qnepu*odksOappejco$Oa_qnepuL]jah*IE?NKLDKJA%7yyyThis will present the user with the Microphone dialog box shown in F igure 5-2, which prompts a micro-phone selection.After you choose a microphone and press the Close button, the Camera and Microphone Access dialog box displays, as you can see in F igure 5-3.F igure 5-2. Microphone dialog box F igure 5-3.Camera and Microphone Accessdialog boxYou’ve probably seen this dialog box before—it simply confirms that it is okay for the Flash movie to use the microphone and/or camera on the computer. As you can imagine, it would be a problem if a Flash movie could access your camera and microphone and start broadcasting your personal life without your knowledge!You might wonder why you didn’t get the access dialog box in the first example. Although you did grab a reference to the microphone, you didn’t actually start using it, so there was no risk at that point. Flash will know when the microphone’s data itself is accessed for the first time and will display the access dialog box at that point.ALTERNATE INPUT: THE CAMERA AND MICROPHONE Now let’s start accessing this microphone and reading the activity level. The activity level will change constantly, so we’d better keep checking it. Sounds like a job for an ajpanBn]ia handler. Our first attempt as follows:l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*arajpo*Arajp7eilknp bh]od*ia`e]*Ie_nkldkja7eilknp bh]od*ouopai*Oa_qnepu7eilknp bh]od*ouopai*Oa_qnepuL]jah7lq^he_ _h]oo Ie_nkldkjaPaop atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lq^he_ bqj_pekj Ie_nkldkjaPaop$%w[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7]``ArajpHeopajan$Arajp*AJPAN[BN=IA( kjAjpanBn]ia%7ylner]pa bqj_pekj kjAjpanBn]ia$arajp6Arajp%6rke`wpn]_a$[ie_*]_perepuHarah%7yyySimple enough. In the kjAjpanBn]ia handler, you just trace out [ie_*]_perepuHarah. However, whenyou try this, you’ll just get a long column of –1s tracing out. Doesn’t matter how loud you talk, which microphone you select, or whether you grant access to the Flash movie to use your microphone, therejust isn’t any activity registering. Again, this is because the Flash movie is not yet doing anything withthe microphone data.There are two ways to get the Flash movie to start using the data. One is to attach the microphone toa JapOpna]i, which usually happens in some kind of chat application or voice recording system, by usinga streaming server such as Flash Media Server or Red5. The other way is to set the microphone’s inputto loop back through the speakers via the oapHkkl^]_g method. Passing in pnqa to this method causesFlash to start accessing the microphone’s input, and you should see an activity level when you makesome noise. As you might expect, passing in b]hoa stops the activity. If you don’t want to hear your ownvoice coming back at you, simply turn down the volume of the output on your specific computer.l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*arajpo*Arajp7eilknp bh]od*ia`e]*Ie_nkldkja7lq^he_ _h]oo Ie_nkldkjaPaop atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7CHAPTER 5lq^he_ bqj_pekj Ie_nkldkjaPaop$%w[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7[ie_*oapHkkl>]_g$pnqa%7]``ArajpHeopajan$Arajp*AJPAN[BN=IA( kjAjpanBn]ia%7ylner]pa bqj_pekj kjAjpanBn]ia$arajp6Arajp%6rke`wpn]_a$[ie_*]_perepuHarah%7yyyRun this example, talk into your microphone, and see what numbers trace out. If these numbers are very low, despite making a lot of noise, you might need to adjust the gain. Gain is essentially a level of amplification that is applied to the microphone before its data is accessed in Flash. Gain can be set in two ways: visually and by code. In the Microphone dialog box shown in F igure 5-2, there is a slider labeled Record Volume. Changing this slider changes the gain. To change this value via code, just set the microphone’s c]ej property to a value between 0 and 100, with 100 as the maximum amplification.Assuming that you now have some interesting numbers tracing out, let’s do something with those numbers besides just tracing them out. The next example creates a bitmap and uses the activity level to set a pixel in it on each frame. The bitmap is scrolled to the left, so you get a running recording of the sound volume reaching the microphone:l]_g]ca weilknp bh]od*`eolh]u*>epi]l7eilknp bh]od*`eolh]u*>epi]l@]p]7eilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*`eolh]u*Op]ca=hecj7eilknp bh]od*`eolh]u*Op]caO_]haIk`a7eilknp bh]od*arajpo*Arajp7eilknp bh]od*ia`e]*Ie_nkldkja7lq^he_ _h]oo Ie_nkldkjaPaop atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lner]pa r]n [^il`6>epi]l@]p]7lq^he_ bqj_pekj Ie_nkldkjaPaop$%wop]ca*]hecj 9 Op]ca=hecj*PKL[HABP7op]ca*o_]haIk`a 9 Op]caO_]haIk`a*JK[O?=HA7[^il` 9 jas >epi]l@]p]$0,,( 1,( b]hoa( ,tbbbbbb%7]``?deh`$jas >epi]l$[^il`%%7ALTERNATE INPUT: THE CAMERA AND MICROPHONE [ie_ 9 Ie_nkldkja*capIe_nkldkja$%7[ie_*oapHkkl>]_g$pnqa%7]``ArajpHeopajan$Arajp*AJPAN[BN=IA( kjAjpanBn]ia%7ylner]pa bqj_pekj kjAjpanBn]ia$arajp6Arajp%6rke`w++ `n]s ] letah ]p _kkn`ej]pao6++ t 9 .54++ u 9 1, iejqo d]hb kb pda ie_ harah[^il`*oapLetah$.54( 1, ) [ie_*]_perepuHarah + .( ,%7++ o_nkhh pda ^epi]l pk pda habp[^il`*o_nkhh$) -( ,%7yyyThis gives you the result shown in F igure 5-4.F igure 5-4. Visually graphing the activity levelNow that’s fine for visualization purposes, but it’s not really using the microphone as an alternate input method. How about a simple game using sound to control a character’s movement? The nextexample does just that.A s ound- c ontrolled gameThe next example is a class called Okqj`Bhean (you can find it as Okqj`Bhean*]o in the book’s down-loadable files). We create an a irplane- l ike vehicle that flies through a roughly drawn cave full of ratherrectangular stalactites and stalagmites, using the microphone activity level to control its lift:l]_g]ca weilknp bh]od*`eolh]u*>epi]l7eilknp bh]od*`eolh]u*>epi]l@]p]7eilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*`eolh]u*Op]ca=hecj7eilknp bh]od*`eolh]u*Op]caO_]haIk`a7eilknp bh]od*arajpo*Arajp7eilknp bh]od*caki*Na_p]jcha7eilknp bh]od*ia`e]*Ie_nkldkja7CHAPTER 5WOSB$^]_gcnkqj`?khkn9,tbbbbbb%Ylq^he_ _h]oo Okqj`Bhean atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lner]pa r]n [bhean6Olnepa7lner]pa r]n [^c6>epi]l7lner]pa r]n [uRahk_epu6Jqi^an 9 ,7lq^he_ bqj_pekj Okqj`Bhean$%wop]ca*]hecj 9 Op]ca=hecj*PKL[HABP7op]ca*o_]haIk`a 9 Op]caO_]haIk`a*JK[O?=HA7i]ga>]_gcnkqj`$%7i]gaBhean$%7[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7[ie_*oapHkkl>]_g$pnqa%7]``ArajpHeopajan$Arajp*AJPAN[BN=IA( kjAjpanBn]ia%7ylner]pa bqj_pekj i]ga>]_gcnkqj`$%6rke`wr]n ^il`6>epi]l@]p] 9 jas >epi]l@]p]$op]ca*op]caSe`pd(op]ca*op]caDaecdp(b]hoa%7[^c 9 jas >epi]l$^il`%7]``?deh`$[^c%7ylner]pa bqj_pekj i]gaBhean$%6rke`w[bhean 9 jas Olnepa$%7[bhean*cn]lde_o*hejaOpuha$,%7[bhean*cn]lde_o*ikraPk$) -,( ,%7[bhean*cn]lde_o*hejaPk$) -,( )4%7[bhean*cn]lde_o*hejaPk$) 3( )0%7[bhean*cn]lde_o*hejaPk$-,( ,%7[bhean*cn]lde_o*hejaPk$) -,( ,%7[bhean*t 9 -,,7[bhean*u 9 op]ca*op]caDaecdp ) 1,7]``?deh`$[bhean%7yALTERNATE INPUT: THE CAMERA AND MICROPHONE lner]pa bqj_pekj kjAjpanBn]ia$arajp6Arajp%6rke`w[uRahk_epu '9 *07[uRahk_epu )9 [ie_*]_perepuHarah & *,.7[bhean*u '9 [uRahk_epu7[uRahk_epu &9 *57[bhean*u 9 I]pd*iej$[bhean*u( op]ca*op]caDaecdp ) .,%7[bhean*u 9 I]pd*i]t$[bhean*u( .,%7r]n d6Jqi^an 9 I]pd*n]j`ki$% & -.,7[^c*^epi]l@]p]*behhNa_p$jas Na_p]jcha$op]ca*op]caSe`pd ) .,(,( 1( d%(,t______%7d 9 I]pd*n]j`ki$% & -.,7[^c*^epi]l@]p]*behhNa_p$jas Na_p]jcha$op]ca*op]caSe`pd ) .,(op]ca*op]caDaecdp ) d(1( d%(,t______%7[^c*^epi]l@]p]*o_nkhh$) 1( ,%7yyyThe flier is a sprite, and the background is a scrolling bitmap with random rectangles drawn over tothe right. The important part is right here in the kjAjpanBn]ia method:[uRahk_epu '9 *07[uRahk_epu )9 [ie_*]_perepuHarah & *,.7[bhean*u '9 [uRahk_epu7[uRahk_epu &9 *57[bhean*u 9 I]pd*iej$[bhean*u( op]ca*op]caDaecdp ) .,%7[bhean*u 9 I]pd*i]t$[bhean*u( .,%7We keep track of a vertical velocity in the [uRahk_epu property. We add .4 to it each frame for gravityand then subtract the activity level * .02 for some lift. These numbers were arrived at through lots oftrial and error. (Thanks to my s ix-year- o ld daughter Kristine for all the help in testing!) The velocityis then added to the flier’s y position, some pseudo friction is applied through multiplying by .9, andfinally the flier’s position is bracketed within a minimum and maximum area to keep it visible. Theresult is shown in F igure 5-5.CHAPTER 5F igure 5-5. Sound flier!As you talk or otherwise make noise into the microphone, the flier will fly. Shut up, and it falls to earth.The stalagmites and friends scroll to the left, giving the illusion of the flier flying to the right. There’s no collision detection implemented (I don’t want to do all your work for you!), but you get the idea.Make just enough noise to keep the flier in the middle area. One thing you can say about a game like this is that it’s not the kind of game you stealthily play in your cubicle when the boss isn’t looking.Although really just the beginning of a game, this example should hopefully spark a few ideas on how you can use a microphone to control some portion of a game or application. Next we’ll take a look at an alternate way of handling microphone activity.Activity eventsIn the Okqj`Bhean game, we check the activity level on every frame. For that type of game, which requires quick reflexes by the user and instantaneous reactions by the game itself, constant checking and updating is vital. But you might envision an application that needs to do something only if the sound reaches a certain threshold. You might try running an ajpanBn]ia handler and checking the activity level on each frame to see whether it is above a certain value. But this process would be very inefficient, using up CPU cycles constantly when it should just be sitting and waiting for something to happen.Fortunately, the Ie_nkldkja class provides an exact solution for this situation: the =_perepuArajp, which is an event class that the Ie_nkldkja class dispatches whenever a specified sound threshold level is crossed. Interestingly, an =_perepuArajp is dispatched in two circumstances: when the activity level rises above the threshold and again when it drops below that threshold. To distinguish betweenthe two, the event has a Boolean value named ]_per]pejc. If it is pnqa, the activity level has gone from a quieter state, crossing the threshold on the way up. If it is b]hoa, the threshold has been crossed as things are quieting down.By listening for this event, you can have your application stand by in an idle state and react only when the noise reaches a certain volume and again when it quiets down.You can use this as a sort of “noise- a ctivated switch” to control just about any aspect of any applica-tion or game. You might want to think beyond b rowser- b ased applications here and consider how it might be used in an A IR- b ased desktop application. You could even create a crude security system. Imagine that when an application “heard a noise” at your house, it activated your webcam and notified you at work, allowing you to see what’s happening there.Or going the other way, you could set the microphone next to some machinery. If and when the machinery stopped running, the application would sense the drop in activity below the threshold and take action.Let’s just run through a really quick example to see it in action. There’s not too much to wrap your head around, so once you see how this works, you’ll be able to use this mechanism to control any-thing. This will be a r e- c reation of an old device that you attach to the lamps in your house to turn them on or off by clapping. So we’ll call the class ?h]llan (it is in the ?h]llan*]o downloadable file): l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*`eolh]u*Op]ca=hecj7eilknp bh]od*`eolh]u*Op]caO_]haIk`a7eilknp bh]od*arajpo*=_perepuArajp7eilknp bh]od*ia`e]*Ie_nkldkja7lq^he_ _h]oo ?h]llan atpaj`o Olnepawlner]pa r]n [ie_6Ie_nkldkja7lner]pa r]n [kj6>kkha]j 9 b]hoa7lq^he_ bqj_pekj ?h]llan$%wop]ca*]hecj 9 Op]ca=hecj*PKL[HABP7op]ca*o_]haIk`a 9 Op]caO_]haIk`a*JK[O?=HA7[ie_ 9 Ie_nkldkja*capIe_nkldkja$%7[ie_*oapHkkl>]_g$%7[ie_*oapOehaj_aHarah$.1( 1,,%7[ie_*]``ArajpHeopajan$=_perepuArajp*=?PEREPU( kj=_perepu%7ql`]pa$%7ylner]pa bqj_pekj kj=_perepu$arajp6=_perepuArajp%6rke`web$arajp*]_per]pejc%w[kj 9 [kj7ql`]pa$%7yylner]pa bqj_pekj ql`]pa$%6rke`wcn]lde_o*_ha]n$%7eb$[kj%wcn]lde_o*^acejBehh$,tbbbbbb%7yahoawcn]lde_o*^acejBehh$,%7ycn]lde_o*`n]sNa_p$,( ,(op]ca*op]caSe`pd( op]ca*op]caDaecdp%7yyyPretty basic stuff here. We get a microphone, set it to loopback so Flash will start listening to its input, and add a listener for =_perepuArajp*=?PEREPU. Note that we also call a method named oapOehaj_aHarah. Remember when I mentioned the concept of a threshold a few times in the preced-ing discussion? This is how you define that threshold: it is the value below which Flash will consider silence and above which Flash considers activity. When the ]_perepuHarah of the microphone crosses this level—going in either direction—an =_perepuArajp will fire. I set it to 25 so it takes a bit of noise to get it to trigger, but you don’t have make a huge racket. If you don’t call oapOehaj_aHarah, the default threshold the microphone uses is 10.The second parameter of oapOehaj_aHarah is a timeout value measured in milliseconds. When an =_perepuArajp is dispatched, the microphone will ignore any other potential activity events for this amount of time. Suppose that you want to pay attention to a sound that is not constant, such as a bang, bang, bang. With each bang, the activity level goes up and then down, so you’ll get two events for each bang. Instead, you just want to know when the banging starts and when it stops. By tweak-ing this timeout, you can ignore the spaces in between the bangs. The default is 2000, or a 2- s econd delay, which is probably optimal for a chat application in which a person might pause for a second or so while speaking, but you don’t want to take it as silence. I set this a bit lower, down to 500 for this application, so you can clap pretty quickly to toggle the “lamp” on and off.The kj=_perepu method checks the value of arajp*]_per]pejc. Again, this will be pnqa if the activity has gone from silence to noise, and will be b]hoa if it has gone from noise to silence. We’ll ignore the second case and just focus on new loud noises coming in: a clap. In here, we toggle the [kj variable and call ql`]pa. The ql`]pa method just draws a black or white rectangle, depending on the state of [kj. Try it out. Clap on, clap off! I recommend experimenting with the parameters of oapOehaj_aHarah to see how they affect things. It’s also worth mentioning that there are r ead- o nly properties on the Ie_nkldkja class for oehaj_aHarah and oehaj_aPeiakqp if you want to see their current settings.Okay, those are the basics of using the microphone. As I said, there isn’t much complex functionality there, but then again there isn’t much complex functionality with a keyboard or mouse, either, and look what we do with them. Now let’s take a look at alternate input using video.Video as InputAlthough sound input is handled through the Ie_nkldkja class, video input is handled through the ?]ian] class. Although they handle different things, these two classes are quite similar. You get a ref-erence to a camera attached to the computer by calling ?]ian]*cap?]ian]. The ?]ian] class has an ]_perepuHarah property, dispatches =_perepuArajpo, and has a oapIkpekjHarah analogous to the Ie_nkldkja class’s oapOehaj_aHarah. Both are designed to be used either locally or in conjunction with a streaming server such as Red5 or Flash Media Server. Again, we’ll be using ?]ian] just for local input in this chapter.But despite the similarities, there is a lot more you can do with a camera. First, in addition to simply reading the activity level or responding to activity events, you can view the input of the camera viaa Re`ak object, which is a display object that you add to the display list and can do anything you doto a display object: filters, transformations, blend modes, and so on. And perhaps the most powerful use of the camera is to draw the video to a >epi]l@]p]. When you do that, you can start analyzing the image pixel by pixel or frame by frame, comparing areas of the image with each other or comparing one frame to the next. Once you start doing that, the possibilities really are endless. I’ll try to spark your imagination with a few examples in this chapter, but even if I spent an entire book writing about what you could do here, I’m sure you’d wind up with something a week later that I’d never imagined.But all things start at the beginning, so let’s look at how to get a hold of the camera and see its input.The first steps are almost identical to getting a microphone. The next class is available for download as ?]ian]Paop*]o:l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*ia`e]*?]ian]7eilknp bh]od*ouopai*Oa_qnepu7eilknp bh]od*ouopai*Oa_qnepuL]jah7lq^he_ _h]oo ?]ian]Paop atpaj`o Olnepawlner]pa r]n [_]i6?]ian]7lq^he_ bqj_pekj ?]ian]Paop$%w[_]i 9 ?]ian]*cap?]ian]$%7pn]_a$[_]i*j]ia%7Oa_qnepu*odksOappejco$Oa_qnepuL]jah*?=IAN=%7yyyYou call ?]ian]*cap?]ian] to—well, to get a camera. You can pass a string referring to the name of a camera on the system, but in general you won’t have any idea of what the cameras are, so it’s best to pass nothing and get the default camera. However, it’s often a good idea to call up the Camera settings dialog box to prompt the user to choose a specific camera. This is shown in the last line in the example, and will result in the dialog box shown in F igure 5-6. Although I won’t show it in future examples in this chapter, you should remember that it’s there and consider using it in your applica-tions to make sure that the user knows how to select the camera.F igure 5-6. Camera dialog boxNow that we have a camera reference, let’s make it visible. You do this by attaching it to a Re`ak instance. The Re`ak class is, as I just mentioned, a display object. So you create one, attach the camera to it, and add it to the display list:l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*`eolh]u*Op]ca=hecj7eilknp bh]od*`eolh]u*Op]caO_]haIk`a7eilknp bh]od*ia`e]*?]ian]7eilknp bh]od*ia`e]*Re`ak7lq^he_ _h]oo ?]ian]Paop atpaj`o Olnepawlner]pa r]n [_]i6?]ian]7lner]pa r]n [re`6Re`ak7lq^he_ bqj_pekj ?]ian]Paop$%wop]ca*]hecj 9 Op]ca=hecj*PKL[HABP7op]ca*o_]haIk`a 9 Op]caO_]haIk`a*JK[O?=HA7[_]i 9 ?]ian]*cap?]ian]$%7[re` 9 jas Re`ak$%7[re`*]pp]_d?]ian]$[_]i%7]``?deh`$[re`%7yyyIf all goes well, and if unlike me, you are in a decently lit room, you should see your beautiful face staring back at you (I just see a grainy gray blob on a grainy gray rectangle, but I’m pretty sure it’s me).After you run this file, you’ll see the Camera and Microphone Access dialog box shown in F igure 5-3 again because you are now accessing the camera’s input.Video size and qualityYou now have a camera capturing video and displaying it to the screen. All very good, but it’s not very big and probably doesn’t look as detailed as other applications you use on the same computer with the same camera. That’s not because Flash is bad, but simply because you’re using default settings and sizes for both the camera and video.You can specify the size of the video right when you create it. It defaults to 320 240, but you can pass in a larger size:[re` 9 jas Re`ak$20,( 04,%7Alternately, you can set the video’s width and height after it has been created.You now have a bigger video, but it’s not necessarily a better picture. To improve it, we have to go back to the ?]ian] class and its oapIk`a method. It takes four arguments, but we’ll discuss only the first three here: width, height, and frames per second (fps). (The fourth argument determines how Flash will handle a mode that can’t be matched by your camera. Feel free to read up on it.) By default, these arguments are set to 160 120 at 15 fps. Aha! That’s why the video looked so bad. Bump this up to 320 240 or even 640 480 to see the difference. The 15 fps setting is probably fine for now: l]_g]ca weilknp bh]od*`eolh]u*Olnepa7eilknp bh]od*`eolh]u*Op]ca=hecj7eilknp bh]od*`eolh]u*Op]caO_]haIk`a7eilknp bh]od*ia`e]*?]ian]7eilknp bh]od*ia`e]*Re`ak7lq^he_ _h]oo ?]ian]Paop atpaj`o Olnepawlner]pa r]n [_]i6?]ian]7lner]pa r]n [re`6Re`ak7lq^he_ bqj_pekj ?]ian]Paop$%wop]ca*]hecj 9 Op]ca=hecj*PKL[HABP7op]ca*o_]haIk`a 9 Op]caO_]haIk`a*JK[O?=HA7[_]i 9 ?]ian]*cap?]ian]$%7[_]i*oapIk`a$20,( 04,( -1%7[re` 9 jas Re`ak$20,( 04,%7[re`*]pp]_d?]ian]$[_]i%7]``?deh`$[re`%7yyy。