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": https://www.youtube.com/watch?v=IoPBsR_Zj7k

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);
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600);
  dht.begin();
XBee.begin(9600);
  Serial.begin(9600);

}

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

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

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

 if (Serial.available())
  { 
    XBee.write(Serial.read());
  }
  if (XBee.available())
  { 
    Serial.write(XBee.read());

 
 }
}

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.