beep sound

hello ,, i'm trying to find code that play beep sound from pc thank you .

Why the shouting (aka bold)? And we are not Google. If you want to find something, use that. Or try this "code":

If you want to make a Arduino project that bleeps that's a different story. Tell us what you want, show us what you have (code, circuit diagram) etc and will help you. But you have to do the work ;)

i'm trying to find code that play beep sound from pc

Did you have an Arduino question?

ok sorry for that

i’m new user for ardiuno and this is my first project

i built a small circuit of temp. sensor ( DHT22 ) , arduino UNO and xbee modules
all i need now to get beep or any sound ( as alarm ) from PC ,when temperature readings become high
this is my code :

#include <SoftwareSerial.h>

#include "DHT.h"

#define DHTPIN 7    
#define DHTTYPE DHT22   

int maxHum = 60;
int maxTemp = 20;

SoftwareSerial XBee(2, 3);

void setup() {


void loop() {
  float h = dht.readHumidity();
    float t = dht.readTemperature();

  if (isnan(h) || isnan(t)) {
    XBee.println("Failed to read from DHT sensor!");

  if (h > maxHum ) {
    XBee.println(" warrning hum.");
if (t >  maxTemp ) {
  XBee.println( " warrning temp. ");
  XBee.print("Humidity: ");
  XBee.print(" %\t");
  XBee.print("Temperature: ");
  XBee.println(" *C ");

 if (Serial.available())
  if (XBee.available())


Thank you all …

In the ASCII character coding, 7 is the BEL (bell) character. In C one can use "\a" in a printed character string to generate the BEL character. A particular terminal emulator may or may not actually make a tone when it encounters this character. Some will simply print something that indicates a non-printable character in the string.